Add methods addVars and setVar