Implemented more error logging.