Implemented filtering.