Created thread for client