Last version containing read loop in TCPClient