Add streaming function.