Save and restore programs' set.