Introduce scheduler spawning for easy multi-threading.