Code to run spawning cues models