Britain’s vast finance industry will emerge largely unscathed from Brexit and retain its position as one of the world’s top financial centers, ministers in Prime Minister Theresa May’s government said on Monday.

Since Britain voted to leave the European Union nearly three years ago, London’s financial services industry has been trying to prepare for losing access to its biggest trading bloc, its toughest challenge since the 2007-2009 financial crisis.

London, which is home to the world’s highest number of banks and largest commercial insurance market, has potentially a lot to lose from the end of unfettered access to the EU’s post-Brexit market, its biggest trading partner.

But Liam Fox, the British trade minister, said he has confidence in the finance industry’s ability to emerge stronger from Brexit and the government values the sector.

“I am convinced that once the dust settles, the City of London will do what it always does, which is to emerge fitter, stronger and more dynamic than ever,” Fox will tell an audience at the medieval Guildhall in London’s financial district.

“We recognize your difficulties, we recognize your importance and we want to work with you to give certainty and stability.”

Britain’s finance industry remains deeply unpopular among the general public for its role in the financial crisis. But the industry accounts for about 12% of Britain’s economic output, employs about 2.2 million people and pays more taxes than any other industry.

British financial services minister John Glen said the City of London’s traditional strengths were in good health, with new sectors such as fintech growing.

But the “slow and frustrating” process of seeking a deal in parliament on Britain’s departure from the European Union remained a “stubborn” shadow over the sector, Glen said.

“I know the City wants and frankly deserves certainty, and I am sorry that I can’t give that today,” Glen said.

May and Finance Minister Philip Hammond will meet with leading figures from the financial sector to discuss how to ensure that Britain’s business environment remains one of the most competitive in the world, Glen said.

Barclays’ bank former chairman John McFarlane said the City cannot take success for granted, especially if the European Union closes its markets to Britain, and foreign financial firms are forced to move activities from London to the bloc.

Bernard Mensah, the president of Bank of America Merrill Lynch in Europe, the Middle East and Africa, said his bosses in the United States were bemused Britain’s decision to leave the EU and it diverting attention from bigger challenges.

Mensah said the best strategists, lawyers and staff working in technology were working on preparing his bank to be ready for leaving the EU.

“There is a real underlying cost,” he said. “The challenge that we face as a region, as an economy, and as an industry are huge and we are distracted by focusing on Brexit right now.”