Updated the ParticleManager class