Add logfile/checkpoint restarting