In agriculture and the food industry, energy is used for various purposes. Direct energy consumption includes electricity consumption for automatic irrigation, fuel consumption for agricultural machinery, and energy demand in various stages of food processing, packaging, transportation, and distribution. The use of pesticides and mineral fertilizers results in large amounts of indirect energy consumption, as the production of these inputs is very energy intensive. While the proportion varies widely across regions, depending on factors such as weather conditions and crop type, direct and non-direct energy costs can account for 40-50% of the total variable costs of growing crops in advanced economies such as the United States.