Updated SelectSegmentRecentlyClustered procedure.