Use gb_sets rather than sets for performance.