Switch from enumeration to filtering.