Fix missing spawn function