Adding code to test consumption with different sliding windows