Added CThread and CClient