adding MAX_PAYOUT as a safety value for making payments