Move zSpawnRate and totalTime to global