Text this: Average-cost control of stochastic manufacturing systems