Ported the thread type.