Update script state functionality