Added cmdline parameter to control number of indexing threads.