Threads in client