Updated gm to export all rows