Break loop if target found
Merge pull request #1387 from fruitwasp/master

Break loop if target found