Former Rep. Anthony Weiner (D-N.Y.) is scheduled to enter a guilty plea Friday to a charge stemming from a federal investigation into his alleged exchange of sexually explicit messages with a teenage girl.

Weiner is to appear in federal court in Manhattan late Friday morning to offer the plea, a spokesman for the law firm representing Weiner confirmed to POLITICO.

Weiner resigned from Congress in 2011, after his denials of reports that he exchanged explicit messages online proved to be false. He ran unsuccessfully for mayor in New York in 2013.

Last year, Weiner came under investigation by the FBI over sexually-explicit messages he allegedly exchanged with a 15-year-old girl. The probe had an unexpectedly outsized political impact, when FBI agents seized a laptop from Weiner and found messages on it deemed relevant to the investigation into Hillary Clinton’s email use.

That discovery prompted FBI Director James Comey to send a letter to Congress 11 days before last November’s presidential election, pushing allegations about Clinton’s email practices back into the news just as voters were getting ready to head to the polls.