Change if statements to switch statements.  This may be faster?