Finished adapting the case commands to if statements.