`threadsToRemove` should be removed. I'll do it tomorrow morning after the profiling.