(Bloomberg) — Maria Butina pleaded guilty to acting as an undeclared Russian agent in the U.S. and agreed to cooperate with prosecutors.

Butina operated as a Kremlin agent as she befriended National Rifle Association leaders and influential conservatives, she admitted Thursday in federal court in Washington.

Butina, 30, was arrested in July. While in the U.S. starting in 2015, she was actually working to advance Russia’s interests, reporting regularly to a senior Russian official, according to her guilty plea.

She faces a maximum of five years in prison, but she won’t be sentenced immediately. Her cooperation could lead to a reduced sentence.

The NRA didn’t immediately respond to a request for comment. The Russian Foreign Ministry said earlier Thursday that any decision Butina took to help free her from detention in the U.S. would be supported by Russia.

The charges were filed by the Justice Department’s national security unit and U.S. prosecutors in Washington, rather than by Special Counsel Robert Mueller, who is investigating Russian influence in the election.

As part of the plea agreement, Butina may provide information about Paul Erickson, her onetime boyfriend. Erickson matches the description of a man referred to as “U.S. Person 1” in Butina’s charging documents. Erickson connected her with influential Republicans and wrote in a message that he had been involved “in securing a VERY private line of communication between the Kremlin” and key officials of the NRA, prosecutors said.

Erickson has visited Butina in jail several times this year, according to her attorney, Robert Driscoll. Bill Hurd, Erickson’s lawyer, said his client is “a good American” who “has never done anything to hurt our country and never would.”

Her admission added to the drumbeat of developments in investigations related to the 2016 presidential election, with indications that prosecutors are receiving information from several people close to President Donald Trump.

This week, Trump’s longtime fixer was sentenced to three years in prison and said he’d assist prosecutors, and the president’s former national security adviser acknowledged he’d sat for 19 interviews with prosecutors and provided thousands of pages of documents. A tabloid publisher with ties to Trump is cooperating, too, after admitting to federal investigators in New York that its CEO talked to people on Trump’s nascent campaign about buying and burying damaging stories that could damage the candidate.

Russia says its spy agencies had no knowledge of Butina or her activities.

“When I heard something was going on around her, for a start I asked the heads of our secret services, ‘Who is she?’ Nobody knows anything about her,” President Vladimir Putin said in a televised appearance in Moscow on Tuesday, the day after Butina said in a filing she wanted to change her plea.

Butina traveled to the U.S. in 2015 and entered the U.S. on a student visa in 2016 to study at American University in Washington. She reported to Alexander Torshin, the former deputy chairman of Russia’s central bank, court documents show.

Torshin accompanied Butina to a variety of conservative political events. In 2015 and 2016, the pair attended at least one NRA conference and a National Prayer Breakfast, the filings say. At one conference, they met with Wisconsin Governor Scott Walker. Butina also attended Walker’s announcement that he was running for president.

At a town-hall-style event in Las Vegas in 2015, Butina asked candidate Trump whether he would improve the U.S. relationship with Russia. Trump said he would.

Butina, who’d started an NRA-like group in Russia called the Right to Bear Arms, was already a fixture in the American gun-rights community. NRA members traveled to Russia in 2013 to attend an event she organized. Among the attendees were Torshin and David Keene, then president of the NRA.

Driscoll, Butina’s lawyer, has said his client was a legitimate university student.

The Butina matter has echoes of an earlier espionage case. In 2010, Anna Chapman and nine other “sleeper agents” working secretly in the U.S. on behalf of Russia pleaded guilty and were sent back to Moscow as part of a prisoner exchange.

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.