Fix for "Illegal break statement"
Merge pull request #1 from OllieTerrance/master-1

"Illegal break statement" on update

Oops, thanks!