Added primitives functionality for Streams