Improve activity filter.