Now outputting a proper tsv file rather than a txt file.