Small changes in thread types API