Implement box filtering