Added thread_type.