SocketTest function added.