Update saving terminal states