Variant Filtering code