Added average along periods of times