Implement filter.