Added optional headers parameter to specify columns (and their order)