Rewrote DynGas iterate