Corrected sliding window prediction and location index.