Stream support for constructor