Final version of spawning model script - for results in manuscript