Implemented streaming API.