Removed "if", added switch.