Function restoreCheckpoint