Made modifications to include the error handler