Added isDebugMode public method