Improving compatibility between official and private stub producers