Adding more debug logging.