SAN ANGELO, Texas — An order to return hundreds of children taken in a raid on the Fundamentalist LDS Church's YFZ Ranch will be filed Monday morning with Judge Barbara Walther.

It will be up to her to sign it.

Lawyers met for several hours this afternoon to try to hammer out a new agreement. There was consensus on some things, but still some disagreements on others, said Brad Haralson, an attorney who represents three FLDS mothers.

A couple of things in the order were tweaked, but attorneys declined to be specific about what.

"It's closer to her version," said Kirk Hawkins, a lawyer representing four FLD mothers, referring to a proposed order put forward by Judge Walther on Friday.

Lawyers for the mothers said they would hope to begin returning the children to their parents starting Tuesday. The Texas Child Protective Services will apply the order to all of the hundreds of children in state custody.

Attorneys had been trying to figure out what to do next after a judge abruptly left the bench on Friday, refusing to sign an order to return the children to their mothers.

The Texas Supreme Court and the Third Court of Appeals in Austin both ruled that Texas child welfare authorities acted improperly in removing more than 450 children from the YFZ Ranch, while it investigated allegations of abuse. The courts ordered Judge Barbara Walther to return more than 130 children to their parents — but allowed her to set conditions.

Negotiations over the terms of the deal broke down in court on Friday, leaving parents unsure of when they will be reunited with their children.

The YFZ Ranch was raided last month when Texas child welfare workers and law enforcement responded to the FLDS property on a report of a 16-year-old girl who was pregnant and in an abusive relationship with an older man. Once on the ranch, authorities said they found other signs of abuse and it prompted Walther to order the removal of all the FLDS children.

Texas authorities are still investigating whether the original call was a hoax.