Would be cleaner if priority groups had the same cardinality as stream identifiers. That would remove the edge case of more open streams than groups.