Add threshold and single_occurance filtering.