Efficiency in the flow of goods through automation