Added Interval Aggregation and Pasted the regression code