Added session and beginning of sockets