Updated electric and magnetic fields to update once per loop instead of once for just the last particle.