Do not sort segments that are always included
Do not use second argument to itertools.count