Improved thread repository spec