Why is the match parameter needed? It doesn't seem to be used in this function.