EOG filtered; sliding window refactored