Save and restore simulation