Modify to work as a submodule.