S&P Global Ratings has upgraded Petrobras to BB- from B+ with a stable outlook, citing improved liquidity and a more balanced capital structure.

“Petrobras is pursuing a governance strategy that focuses on accelerating debt reduction and on strengthening liquidity position,” S&P said in a report. “In our view, the establishment of the pricing policy supports cash flow visibility and a more balanced capital structure.”

Brazil’s state-owned energy company agreed to sell $13.6bn in assets in 2016, short of the $15.1bn target, and it plans to sell at least another $19.5bn in assets by the end of 2018. Petrobras has also cut gasoline prices five times since October last year.

The new pricing policy, along with better governance, will likely allow the company to improve cash flow and keep lowering its debt levels, S&P said.

S&P also raised Petrobras’ stand-alone credit profile to bb- from b- and the national scale ratings to brA from brBBB-.

The rating agency maintained the BB credit rating with a negative outlook for Brazil, saying the country’s economic challenges require a steadfast commitment to lowering debt levels. “[L]ingering political uncertainties, heightened fiscal pressures from local governments, and a weak economy imply a slow, prolonged adjustment,” S&P said.

The Brazilian economy will likely post low growth over the next several years, S&P said.