Adding an index on lastFlagged