Rewrote some of the time series migration