Fixing the logging.