Add threads in client