San Francisco Mayor London Breed announced Sunday that she’s lending some of her own staff to help the city’s troubled public school district, whose top official narrowly avoided termination just hours earlier.

Hours after the San Francisco Unified School District’s governing board wrapped up a meeting in which it considered firing Superintendent Matt Wayne, accepted the mayor’s offer.

In a news release Sunday afternoon, Breed said she’s carving out $8.5 million for the School Stabilization Team to help SFUSD overcome its dysfunction.

Money for the mayor’s effort comes from a 2022 measure that unlocked city money to help SFUSD with so-called Student Success Funds for urgent needs. That’s on top of the $100 million the city already provides annually to its K-12 district.