Replaced restore block code