Adding in smallSegmentGrouping option (incomplete)