Added thread id in otc debug