Added option to restore revisions #1791