Ooops, we did this wrong, needToFinish is also a global var

So compiler didn't warn. Not good. Fixing.