Removed redundant error handler.