Added thread option
Added thread option