Made it so you can enter number of threads in command line