Add thread type feature

@jimabramson
'return` is unnecessary