Made echoing of debug messages optional