Added ability to combine several outputs