Add a variant class.