Fixing some logging.