Forgot to declare restart flag first.