Got the recursion working