Add thread type feature

@jimabramson
why remove this?