Edited version for Mifos system