Added userip & referer addresses and correct return address