Make matching recursive