Adding a break once match is found.