Add defVars function