Support for referral codes