New function called matchedAny.
Code reformat.