Improvements to the new spawning algorithm

Signed-off-by: Ross Allan <rallanpcl@gmail.com>