Generalize to N output streams