Instead of this case statement.