Use switch statements.