Added setDebugLevel to the debug object