Added some more helper functions in mortgage