Updating structure of submodules