Add some timeseries functions