Changed if-else to Switch