Add lending logic.