Make the number of threads a parameter when running main.py
Make the number of threads a parameter when running main.py