Ditched switch statement.