Added debuging option to toggle output messages