Better check for restart flag.