Update state script