Added break in functions and for loops