Work on the socket