Former Congressman Anthony Weiner was released from a New York City halfway house on Tuesday after serving time for sending sexually explicit text messages to a 15-year-old girl.

“I hope to be able to live a life of integrity and service,” Weiner told reporters outside the facility. “I am glad to be getting back to my family. I’m glad this chapter of my life is behind me.”

A New York City judge in April designated Weiner, 54, a Level 1 sex offender, which under New York law identifies him as posing a low risk of reoffending. Under the designation, Weiner must register as a sex offender 20 years. He must verify his address annually and report to police every three years to have a current photo taken.

Weiner must also still complete three years of court supervision, under the terms of his sentencing. Arlo Devlin-Brown, an attorney for Weiner, declined to comment on Tuesday.

Weiner was sentenced in September 2017 to 21 months in federal prison over the sexting scandal and began serving his time in November of that year. He was released early in February of this year due to good behavior and transferred from a federal prison in Massachusetts to a halfway house in the Bronx. Altogether, he served 18 months of his sentence.

After serving nearly 12 years in Congress, Weiner resigned from the House of Representatives in 2011 when he was caught exchanging sexually explicit photos with women via social media.

He relaunched his career in 2013 with a run for New York City mayor but was caught sexting a 23-year-old woman under the alias “Carlos Danger” and lost the Democratic primary.