       }
            else
            {
                elemstart = 0;
                elemend = Math.min(elemend,elemrange);
            }
        }

        let buffer = '';
        let accusize = 0;
        let accu = [];
        newdb = [];
        let lastloop = false;
        let errs = null;

        while (true) {
            const { done, value } = await reader.read();

            // Decode the chunk to a string
            const chunk = decoder.decode(value, { stream: true });
