Fixed ByteStream Transfer

There are few issues still left to fix.