Compacted the switch block.