Change name of variable to simul_state, not only global state can be used