Now using dynamic size arrays instead of Buffers