Added size attribute to datastream