Maximum demand control