Handle basic filtering.