How does a Debt Agreement work?