Should this be ``(window_size - 1) // 2``?