Stop matching once we have a match