Working on Datastream class.