Added base stream api
Merge remote-tracking branch 'origin/master'