Added referer parameter
Added sentry logging functional.