Support for growing the buffer

As more data is fed in, the buffer will grow as needed.