Design and Renegotiation of Debt Covenants