Added parameter to setMonitorVariable that makes the variable update happen only once,  Request from Dinesh