Added a way to choose to download data via xml or tsv.