Moved clientSockets to threads