Running a script does not change the state, modifying the state flags does.