Readding a break conditional in the loop