Updated ClientThread