Added recursion for federated models. TODO: finish append function on the scene graph.