Adding number of threads as command line parameter.