Support for DEBUGMODE