Updated

San Diego County has agreed to pay $1 million to the family of a 16-year-old girl who killed herself while in a juvenile detention facility.

In a settlement reached this week, county officials say they are in the process of making changes to prevent future suicides at the Kearny Mesa juvenile hall facility.

The settlement will resolve a lawsuit filed by the family of 16-year-old Rosemary Summers, who hanged herself with a bedsheet at the facility in September 2013. She died four days later.

The family's lawsuit against the county alleged that the teenager told county employees of suicidal thoughts, that the facility was understaffed the night she hanged herself, and that her mental health issues were potentially amplified by overmedication.