More enhancements to loan balance calculations.