Adding error logging.