The challenge of feeding an army