Could you give an example of what deferred spawning and finish spawning looks like in code? If possible.