Fixed bugs in streaming functions

Paramters to streaming functions work as intended.
Streams do not reconnect and repeat if the streaming function has been
exhausted.