Fixed chunked functionality. Now reads multiple chunks correctly.