Clean up time series output calculations. Reduces the amount of looping
required.