Updated the pay function for less text in if statements.