Added configurable error reporting level