Loop correctly for fixed number of bytes retrieval. Closes #4