Updated match to handle an array of matches