Updated code to support latest Particle Effect changes