Consolidate cases in a switch.
Update examples.
Update examples.