Got recursion to work.  Now the final file needs to be created.