Added failsafe to GenerateParticles