Extracted messy CSV code into CSVInterface class