Renamed min_occurances to occurances_min