I *think* I got the first run check complete working!

We'll see if I'm right tomorrow... or maybe not...
Moving write() above check()