Updated this Euler loop where it was using the right side time of the prediction span instead of the left side (n+1 vs n)