Changed script to check headers at the top of the file for correct columns to use