Implemented function to reset the streamid