Move thread manipulations to server.