People in the IRC channel for #macgamingmods yelled at me for not having { } guards after the if statements, so I'm adding them this time.