Fixed the issue where we were reading more bytes than needed. It appears to be working properly now