Maximizing energy efficiency