Clean reconstruction: the original Flash version's numerical integration was buggy (a non-reset accumulator). This uses the standard sit-and-wait relations, so the energy-gain curve has a well-defined optimum.