Sliding window. Closes #2