Replaced case statements with a single statment.