Add comments explaining switch block