Fix StreamMgr to handle different types of inputs