Added get/setDebug method.