Fixed bug where when clicked on toggle; the output printed nothing.