Added memoryStream. Byte conversion fix.