Updated particles.c