Fix using a reserved word 'export'.
Store also the current row number for automatic resuming.