Implemented the filter