Made client multi threaded and now handle cd