Instead of the break statement we added a continue to continue on with the code even if it hits a snag.