Saving state on current changes.