Cleaened up debug writes fron read loop