Added handler to update /constants with the new value of the variable when the variable is updated.