Finished state restoration stuff