Added balanced subset generator.