Changed export to only select active rules.