Update submodule logic.