Implemented new management of debug output.