Traverse backwards instead, far more robust. Should elide basically all redundant continue; statements now.