Clarified spawning code