Splitted the client in two parts for multithreading
Splitted the client in one more part