Resolved errors. Testing would be appreciated.
Added support fo rpassing cx to setVar
setVar with cx to master