Give your app an assistant that can use its UI.
Recent revisions are kept. Restoring one creates a new revision.