Save in generated state