Added in some checks for the csv headings.