Disgraced former U.S. Rep. Anthony Weiner is set to get out of prison earlier than expected.

Weiner, who was sentenced to 21 months behind bars, is scheduled to be released three months early, Federal Bureau of Prisons records show. Online records show his release date as May 14, 2019.

The New York Post reported Weiner has been a model inmate while incarcerated at the Federal Medical Center in Devens, Mass.

Weiner resigned from Congress in 2011 after he accidentally tweeted an explicit photo of his groin, which he meant to send privately to a college student.

More sexually explicit messages and photos with women other than his wife were revealed when he ran for mayor of New York City in 2013.

In 2016, Weiner’s ex-wife, Huma Abedin, announced she and Weiner were separating after new reports surfaced that he had sent more sexually suggestive photos, one of which included the couple’s son sleeping next to Weiner.

Weiner was then accused of sending inappropriate messages to a 15-year-old girl.

Weiner reported to prison in November 2017 after he pleaded guilty to sending the inappropriate messages to the 15-year-old girl.

[Also read: Kanye West to meet with Trump, Jared Kushner this week]