Added some logging.