Add some debug logging.