Modified TimeSeries example