Implement filter and test