Add stream API support