Make referrer work