Fixed ordering of some spawn functions.