Adding payout logic.