Update the variables as well.