Simplified DocumentFilter class.