Watch a scalar variable when setting value