Adding ErrorManager