German drug and agricultural chemicals giant Bayer raised its earnings outlook Tuesday after a strong performance in its pharmaceutical division, sending the group’s shares sharply higher.

The company now expects adjusted operating profit of 9.8 billion to 10.3 billion euros ($11-$11.5 billion) this year, above a previous range of 9.6-10.1 billion euros, it said after releasing third-quarter results.

Sales of prescription medicines jumped eight percent in the quarter, driven by demand for cancer, kidney disease and heart failure drugs.

“We’ve reached a turning point in pharma’s growth trajectory and we’re beginning to see the other side,” chief executive Bill Anderson said.

Shares in Bayer, which first developed aspirin, jumped more than five percent on the Frankfurt Stock Exchange.

Overall however the group reported a net loss of 672 million euros for the third quarter on sales of 10.1 billion euros.

Earnings were dragged down by losses related to some drugs and slower business in its agricultural chemicals division, where revenues fell two percent.

The company attributed the dip largely to regulatory impacts and poor weather conditions in key global markets.

Bayer has for years been dogged by a flood of court cases in the United States over claims that the weedkiller Roundup causes cancer, which the German group has long rejected.

Roundup was developed by Monsanto, a leading US agrochemical and biotech firm that Bayer acquired in 2018.

The company won another legal victory last week when a US jury rejected three women’s claims that the weedkiller caused their cancer.

“The fact that all 12 jurors sided with the company should be informative for those seeking to pursue claims in the court system,” Anderson said.

Bayer is hoping to bring the saga to a close with a $7.25-billion class action settlement.