Working TSV_CSV function