Further Haskell implementation -Dealing with issues in sending ByteStrings