Variable first match, with test