Amber Portwood and Gary Shirley have finally come to a custody agreement for their daughter, 7-year-old Leah. Following years of turmoil, the former Teen Mom OG couple agreed to share custody of their child and according to Portwood, things between them are going smooth.

"Me and Gary sat on his front porch and talked about everything," Portwood said during an interview with People Magazine on August 20. "[We were] like 'Okay, what should we do?' And we made the decision that he would take primary custody, simply because we didn't want to take her out of her school.

Don’t miss on the latest updates Follow the Reality TV Channel

She's going to a really great school and she's in an advanced class and I don't want to take that away from her." 

Amber Portwood gave up custody of Leah in 2012

In 2012, Amber Portwood chose to enter into a 5-year prison term instead of completing a court-ordered drug program and in turn, she signed over the rights to her daughter so that her ex-fiance, Shirley, would be able to make all necessary decisions on the child's behalf.

While Portwood was expected to be behind bars for at least a couple of years, she ended up being released from custody in November 2013 after just 17 months behind bars. At that point, she began spending time with her daughter once again but when it came to custody, Portwood was facing an uphill battle.

Amber Portwood has an open agreement with Gary Shirley

During her recent interview with People Magazine, Amber Portwood said that she and Shirley were splitting time with Leah 50/50. As she revealed, there were times when she would have her daughter for a week straight and when it comes to her school schedule, she has the freedom of calling and picking up her daughter whenever she wants. Although there have been rumors claiming Portwood lost her custody battle, that simply was not the case.

Top Videos of the Day

Instead, she revealed, she and Shirley came to an agreement out of court and didn't need to go back.

For more of Amber Portwood and Gary Shirley, tune into the 6th season premiere of Teen Mom OG airing tonight, August 22, at 10 p.m. on MTV.