Small changes to sockets.