Converted function to read points in from a CSV.