S&P Global Ratings upgraded Brazil to BB from BB- on Tuesday, putting the country two-steps below investment grade, as the country advances with an overhaul of its tax system.

The move came after Brazil’s congress approved a major reform of consumption tax last week in an effort to spur economic growth.

S&P said the rating’s stable outlook reflects its expectation that Brazil “will make slow progress in addressing fiscal imbalances and still weak economic prospects.”

Goldman Sachs analysts said in a report that S&P’s previous rating was “out of step” with the other two main rating agencies, Moody’s and Fitch, which rate the sovereign Ba2 and BB, respectively.

“In our assessment, three notches below investment grade for a country with a very solid external position was exaggerated. S&P openly recognizes that the upgrade is to a significant extent the recognition of a series of reforms that started 7 years ago (three administrations ago) and a credible monetary anchor,” the analysts wrote.