Replace break with continue statements