Implement switch statement support