Cambridge Analytica is the British-based firm that ex-employees allege vacuumed up data from tens of millions of Facebook users to influence the 2016 presidential race for Donald Trump. The firm, which announced later Wednesday that it is declaring bankruptcy and shutting down, also was paid by the Tillis campaign and the state GOP for work in the 2014 elections, according to campaign finance reports.

State Democrats allege in their Federal Election Commission complaint that Tillis‘ campaign and the state Republican Party violated the law because Cambridge Analytica employees were foreign nationals who helped make key campaign decisions. Cambridge’s website says the company’s “unique data-rich voter file” was used to build high-tech profiles for all North Carolina voters and increase turnout, helping Tillis unseat Democratic Sen. Kay Hagan.

The complaint also accuses the Tillis campaign and the state GOP of receiving illegal contributions from a super PAC led by John Bolton - now Trump’s national security adviser - that also used Cambridge Analytica in pro-Tillis campaign activity. The Bolton PAC spent nearly $1.4 million backing Tillis in the race, according to the Center for Responsive Politics.

“Protecting the sanctity of our elections is paramount and any violations must be rooted out and punished to curb future efforts to undermine our elections,” state Democratic Party Chair Wayne Goodwin said in a news release.

“This is a frivolous and blatant, politically-motivated complaint that makes a mockery of the Federal Election Commission process,” the Tillis campaign said in a statement, adding it “never employed foreign workers or improperly coordinated with outside groups.”

State GOP Executive Director Dallas Woodhouse said state party decisions “were made by North Carolina citizens from our downtown Raleigh office.”

In 2014, Cambridge Analytica received $150,000 from the state Republican Party and $30,000 from Tillis‘ campaign, campaign finance reports show. Both the GOP and Tillis downplayed the firm’s role; Woodhouse described it as one of many direct-mail vendors that provided no social media work.