Fixed infinite restart bug. Static memory not accounted for in readout and was over allocating memory. Changed MAX_BUFFER_SIZE from 1024 to 256