Add command line option for specifying the number of threads to use