Added case/default syntax to switch.