Particle and vector code.