Changed data collation functions to use column names not numbers