Add thread type feature

@jimabramson
It doesn't say anything that isn't immediately obvious from reading the function