Added support fo rpassing cx to setVar