Add referral parsing for better ref data