Adapt macro to new particle stack.