Took me far too long as well to traverse that nested hash. I felt like a complete idiot because I was unable to reference the child hashes. So now I just create a new hash for each child. There must a better way I suppose.