Level info added to debug function