Needed to know the length of the outgoing buffer