Handle multiple ref seqs & update output