Make the sliding algorithm more flexible for #2