Added thread command line option