Fixed numthreads argument handling