What is the purpose of spawn(0) here? Never quite understood what it does.