Added TCP client functionality