Refactored particle system again.