Credit to RingOfStorms for particle class