Made correction for logging.