State working with run immediately checkbox. Still issue with when state is cloned and updated.