Hi! This mod is exactly what I've been looking for for ages! So useful!
I'm quite sure that the variable 'value' on line 303 shouldn't be local. As far as I can tell the idea behind the consolidation on lines 301-314 is to move the average of 'step' values and use that as input for the next interval. If 'value' is local then you'll reuse the function input rather than the calculated average.