Add an automatic repayment functionality