The Children's Hospital Oakland reached an agreement with the family of Jahi McMath today that will allow a critical care team to enter the hospital to move the girl to another facility.

The agreement was worked out in the courtroom of Alameda County Superior Court Judge Evelio Grillo. It's the latest development in the battle between the hospital and the girl's family, who rejected the hospital's ruling that Jahi was dead after doctors determined that she was brain dead.

Jahi can be moved while remaining on a ventilator.

Under the agreement, Jahi's mother, Nailah Winkfield, is "wholly and exclusively responsible for Jahi McMath the moment custody is transferred in the hospital's pediatric intensive care unit and acknowledge(s) that she understands that the transfer and subsequent transport could impact the condition of the body, including causing cardiac arrest."

Christopher Dolan is the attorney for McMath's family. He argued in court for the need to perform these procedures,

"This is really a critical issue because as the time moves forward any chance that Jahi has to receive any type of neuro-rehabilitive care, which her family seeks to do, is expiring," said Dolan.

McMath was declared brain dead by three doctors following complications from a tonsillectomy nearly a month ago. Her family has been fighting to keep her on a ventilator while they try to arrange for another facility to care for her.