Edited script to work with CSV instead of TSV