Add thread type feature

@jimabramson
OK, but definitely need to loadtest this.