First part of loan functionality finished.