Adapt to the new multithreaded API which requires a StreamID to be passed.