Restrict number of cpu threads to 4