JSON.stringify in debug output function call causes time consuming process. Every debug output surrounded now by if(this.config.debug)