Working version of variantjustification