Added a routine to make toggling actions easier to type.