Switch to using a case statement.