Changed switch to if statements