Added 'cancel', 'isDebugEnabled' and 'setDebugEnabled(boolean)' methods.