Updated ServerThread