Tens of thousands of Flint children who were exposed to lead during the Flint water crisis will be screened to determine whether they need health or special education services, under an unprecedented partial settlement of a federal lawsuit against the state and two school districts.

As part of the settlement, the State of Michigan will pay $4.1 million to cover the cost of the screenings, according to USA Today.

The screenings could impact between 25,000 and 30,000 school age children, as well as younger children who may have been exposed.

The settlement, which applies to all Flint children, including those who attend charter schools, was filed Monday in federal court in Detroit.