Allow turning on/off debug via param