Allow chaining during construction of datastream.
Add some checks.