Restoring scripts