That gives me strong confidence that it is the WRITE line; I'll comment it out but ultimately move it to the main loop.