Added thresshold filter.