Changing way in which to get info from the socket.