Implemented NVars - might not work yet; taking to lxplus for testing