Implementing `filter`.