Pattern doesn't need to be in the loop.