Number of threads is passed as CL argument