Added support to handle different cols of spreadsheet