Abstracted emission code from TestParticleSystem to ParticleSystem