Jackson, Miss. public school officials have agreed to ban the use of handcuffs for all but teenage criminal suspects and to revise the school system’s discipline and restraint policy to include better training for handling unruly children.

The agreement, approved by a federal judge May 25, settles a suit filed a year ago by the Southern Poverty Law Center (SPLC) over practices at the Capital City Alternate School, where troubled students are referred.

It also means an end to the practice in Jackson schools of shackling students to poles, stairways or desks.

“It’s apparent there were severe problems that we hope now are being addressed and will be alleviated,” U.S. District Court Judge Tom Lee told lawyers in court May 25 according to the Associated Press.

“This settlement agreement is a victory for the students of Jackson Public Schools who have been subjected to years of brutal disciplinary policies,” said Jody Owens, who leads the SPLC’s Mississippi office, in a statement.

Meanwhile, Jackson Public Schools Interim Superintendent Jayne Sargent told Reuters she was “delighted” that a settlement was reached.

Lee ordered that the school district may still handcuff students over the age of 13, but only if they commit crimes.

The school will also undergo a school climate assessment within 60 days where students, parents and teachers will complete satisfaction surveys and all employees of the school will undergo training on behavior management, verbal de-escalation and effective communication.

The practice of handcuffing unruly students is not limited to Jackson but Mississippi is one of a handful of states that includes Indiana, Kansas, Alabama and Arizona where a restraint policy is not spelled out, SPLC officials said.