Adding ability to stream to API