Adapted E&M code to make one-day rolling window predictions.