Adding option for nParticles in beam