S&P said there was a one-in-three chance it downgraded Mexico’s credit ratings in the next two years from its BBB+ rating, as the sovereign’s debt levels near 50% of GDP by 2019.

“The debt burden has gone wrong in the last few years,” Mexico sovereign analyst Joydeep Mukherji said in a conference call.

S&P expects government debt to approach 48% of GDP by 2019, up from 45% this year and 28% in 2008. “It’s not an alarming level, but the sovereign is losing fiscal space. The more debt you have, the less room you have,” Mukherji said.

While A3/BBB+/BBB+ rated Mexico showed stability, the analyst cited poor economic growth for Mexico’s rising debt levels, rather than irresponsible economic policy or runaway public spending. 

Despite Mexico’s structural reforms resulting in more disposable income, deeper financial markets and greater access to credit, both private and public investment levels have not responded in the same way, he added.

“Growth is not just based on consumption, but it is also based on investment,” Mukherji said.

The rating agency sees Mexico’s GDP growing slightly above 2% in 2016, before rising around 3% per year between 2017 and 2019, based on stable growth in the US and a gradual increase in investments in the local energy sector. 

S&P also assigned a negative outlook to state-owned energy company Pemex and federal utility CFE, while keeping the ratings at BBB+. It gave a negative outlook to 12 financial institutions, including six commercial banks, five government-backed banks and Mexico’s only clearing house MexDer.

Finance Minister Luis Videgaray said the 2017 budget will include a surplus for the first time in eight years.