Add some breaks to while loops.