Adding some code for time series.
Adding some code for time series.