Simplification of uaMatch, based upon the patch by Ben Alman.