Now uses a list for keeping track of loop jump points.