Change in writing output to tsv.
Change in ranking logic.