Replaced thread submodule with files