-SpawnGroup function added