Changed the UnboundedByteBuffer to a BoundedByteBuffer