Handle switch statements