Some generic stuff for reading in a CSV.