Cleanup and minor fix.
Marks the rows that are going to be deleted.