Add scheduler spawns for multithreading.