Added errorHandler.