Adding read and write pointers for the receive buffer.