Add functionality to LoanRepository.