Changing those pesky ifs to a switch statement