Added thread to client