Before chaning average to last datapoint
After chaning average to last datapoint
Before using integration for the temporal
After using integration for the temporal