Better checking for NaN or infinite values when computing the average.
Changed the running total time series to return the last known total, even if queried outside of their time domain.