The ts.currentStep is shared across all parameters but should be tracked per-parameter. When multiple parameters have different numbers of timesteps, this causes incorrect step tracking. Consider using a vector to track the current step for each parameter separately.
Originally posted by @Copilot in #167 (comment)