Added errors handlers.