Updated case statement.