Only load submodules if needed