Striking a deal with energy firms