Make sure to update $lastSeq if we "continue" the loop