Use recursion.