Added sliding window chunking