Added support for stream options
Better example