Funding a loan in tranches