Added option to disable -threads switch.