A French appeals court has upheld former President Nicolas Sarkozy’s conviction for criminal conspiracy over efforts to secure Libyan financing for his 2007 presidential campaign.

The court said on Monday that Sarkozy played a “decisive role” in the scheme. It must still consider other charges, notably corruption, and set a sentence that could be as long as 10 years in prison.

Sarkozy, 71, last year became modern France’s first former president to go to jail after being convicted of seeking illegal campaign funding from Muammar Gaddafi in exchange for help restoring the late Libyan dictator’s international image. He was sentenced to five years and spent 20 days in Paris’ La Sante prison before being released pending the appeal ruling.

Sarkozy has denied any wrong doing in the case. At the appeal hearing, prosecutors called him the “instigator” of the alleged pact.

Presiding judge Olivier Geron ruled out sending Sarkozy and his co-conspirators to prison immediately. The former president could still be jailed at a later date.

Sarkozy was president from 2007 to 2012.