The moderate Islamist Ennahda party was set to win most votes at Tunisia parliamentary vote and edge out the rival Heart of Tunisia, according to exit polls. Both of the parties claimed victory ahead of official results.

According to exit polls, the Ennahda party seemed set to face massive loses but stay the strongest party in Tunisia after Sunday vote.

The moderate Islamists were set to claim 17.5% of the vote, according to poll conducted by Sigma Conseil. Their rivals from the Heart of Tunisia party, controlled by jailed media magnate and presidential candidate Nabil Karoui, was estimated to about two percentage points behind.

The Sunday vote featured more than 16,000 candidates from more than 200 different parties competing to fill the 217-seat unicameral legislature, the Assembly of people’s Representatives.

It follows the first round of a presidential election that garnered much greater public attention. The presidential vote ended inconclusively forcing a runoff on October 13th

Analysts said the parliamentary vote could have lasting effects on the future of the country, which experienced a democratic uprising in 2011 and has since stuggled to achieve political and economic stability.

The parliamentary vote saw the Islamist party Ennahdha which previously held the most seats in parliament hoping to maintain its lead against Heart of Tunissia led by Karoui. He has been accused of tax evasion but says charges against him are politically motivated.

Shortly after polls closed, Karoui said party had come in first. Not long after, and Ennahda spokesman said in an online news briefing that his party had come in first. Two exit polls conducted showed Ennahda winning the most votes and Karoui’s Heart of Tunissia coming in second.

Experts expect a highly factionalized outcome that could make government negotiations very difficult. The parties elected into parliament will nominate a prime minister who will then have tow months to get a government in place

The country has grappled with terrorism and voting took place amidst high security.

According to the electoral commission total turnout reached 41%, well under the more than 60% achieved in the 2014 legislative election, which saw the parliament be elected for the first time in its current form.

Many Tunisians are frustrated with traditional political parties’ failure to deal with high unemployment, poor services and rising costs of living.

It is the third time that Tunisians have voted in a parliamentary election since the 2011 uprisings that toppled longtime dictator Zine Abidine Ben Ali.Preliminary official results are expected mid-week