Extending script to handle multiple columns for the data tables and any order of those columns.