Is that Write only an initialisation?

Shouldn't it be outside the Main loop?

Robert