Moving CSV_FIELDS to the function using it.