Demand-driven biogas production from Upflow Anaerobic Sludge Blanket (UASB) reactors to balance the power grid.