Streamline the main submodule loading loop.