Add thread type feature

@jimabramson
Will fix