Adding CLI parameters to control threading