Both integrator and both min/max function now remove the intervals which they have passed in order to remove unnecessary passes of the for-loop.