Text this: Optimal licensing of cost-reducing innovation.