Added sendVars method