Changed switch to if