Added spawn functions.