A court in Iran has sentenced a Belgian national to a total of 40 years in prison, dozens of lashes, and financial penalties for spying and other charges.

Former aid worker Olivier Vandecasteele received the preliminary sentences, which can later be appealed, on four charges, according to the official news outlet of the Iranian judiciary.

For each of the main two charges, namely spying for foreign intelligence services and “cooperating with the hostile United States government against the Islamic Republic”

For “professional smuggling of foreign currency” in the amount of $500,000, Vandecasteele was sentenced to 2.5 years in prison, 74 lashes, and a $1m fine.

Lastly, he was found guilty of laundering the money he is accused of smuggling, for which the Tehran Revolutionary Court decided on a 12.5-year prison sentence.

Vandecasteele, 41, has been imprisoned in Iran since February. His family said last month that he received a jail sentence of 28 years.

Vandecasteele denied all the charges. Belgian authorities have previously condemned Vandecasteele’s imprisonment, calling it “illegal”.