Extracted code from submodules