Add code to Variant.