Improved concatenation of multiple outputs.