Added referer debugging