Add thread type feature

@jimabramson