Add and use the WriteLoop