Fixed chaining to work for sockets.