Moved payout to own file