Updated ToggleExample method.