Add some logging.