Fixing logging.