Adding sliding window.