If loop breaks

These don't work yet but I think manually breaking the loops when
elements are not found may be the solution so I'll play with it a little
later.