Updated copy phase to support new submodule structure.