NEW YORK (CBSNewYork/AP) — Former Congressman Anthony Weiner is scheduled to be released from prison early, officials tell CBS2.

Weiner’s release has been moved up from August of next year to May 14th, and reflects credit for good conduct.

READ MORE: 2 Shot Aboard Subway Train In Harlem; Suspect At Large

Inmates can get up to 54 days every year shaved off their sentence if they behave well.

More From CBS News

The 54-year-old Weiner was sentenced to 21-months in prison for sexting with a teenage girl, and surrendered last November at Devens Federal Medical Center in Massachusetts.

The facility in Ayer, about 40 miles west of Boston, has over 1,000 inmates at the medical center and over 100 more at an adjacent minimum security satellite camp. It’s the same facility that once housed Boston Marathon bomber Dzhokhar Tsarnaev.

Weiner was sentenced by a judge who said Weiner’s crime resulted from a “very strong compulsion.” A tearful Weiner said he was undergoing therapy and had been “a very sick man for a very long time.”

WEB EXTRARead Weiner’s complete remarks (.pdf)

READ MORE: Parents Of Michigan School Shooting Suspect Arrested After Manhunt

Amid a sexting controversy involving women, Weiner resigned his House seat in 2011 only to have new allegations doom his 2013 run for mayor.

In 2016, a criminal probe into his sexting with a high school student intruded into Democrat Hillary Clinton’s bid for the White House. Then-FBI Director James Comey announced in late October 2016 that he was reopening the probe of Clinton’s use of a private computer server after emails between Clinton and Weiner’s wife, Huma Abedin — formerly Clinton’s closest aide — were found on Weiner’s laptop computer.

Key Dates: The Rise And Fall Of Anthony Weiner

Two days before Election Day, the FBI declared there was nothing new in the emails. But in a recent interview, Clinton called Comey’s intervention “the determining factor” in her defeat.

Abedin and Weiner are in divorce proceedings.

At sentencing in Manhattan federal court, Weiner attorney Arlo Devlin-Brown said his client likely exchanged thousands of messages with hundreds of women over the years and was communicating with up to 19 women when he encountered the teenager.

After his sentence is served, Weiner must undergo internet monitoring and must have no contact with his victim. He must also enroll in a sex-offender treatment program.

MORE NEWS: Scheifele Has Hat Trick, Jets Beat Devils

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)