Added VariantInit function.