- Changes main of the project to run thread correctly