Add support for submodules.