Changed BytesReader to PinnedBufferReader