Further work setting up buffers for for incoming data