Updated metquery to handle multiple matches