Added memory stream.