Fixed internal variable name and added flag for distinguishing whether a
plot is an update