Updated referer.referrals to use templates