Add a type to hold the thread info.