First draft of thread spawner

Add an example here for clearity, maybe? It might be hard to follow.