Use snapshots of the stack to restore stack to its previous state