Start of IDV with threaddddddssssss