Add #104: The code to modify global_toggle_state should be factored out into a separa...