Added debug input, suppressed extraneous display on !debug.