Add core.module.loaded_tree to keep track of the module tree