adding in extra logging.