Split outputs in merge