Changed and fixed byte by byte output