Switch the if statements