More functionality to byteStream.