Added session ID and better getting of IP address.