Making changes for using time based Moving average.