Changed thresholds to freq