I could be mistaken, but is this last loop necessary? Would the code work just the same without this loop and the break statements?

CSW