A filter implementation