do..while

Try rewriting the same do loop you had at the top, moving the while loop to the end (like the stuff I have) and moving the byte line above the do while loop.