Implemented error handling module.