Added some additional logging.