Removed errors about threads not running in main