Add a "--threads N" option instead of having to use an environment variable. It also now defaults to running with the number of CPUs on the machine.