Demand is driven by US consumption of gas and diesel fuel. The profitability of refineries depends on efficient operations and the best mixture of products. Although there are significant economies of scale in refinery operations, a small refinery can compete effectively with large ones if it's located in a favorable market area, or if it produces specialty products that are in high demand.