Implemented sliding window for interpolation buffering.