Added some comments to switch logic.