Issue 385 Added a function for setting update variable since this makes debugging which changed value triggered the update