Function getUpdateState