The National Football League has settled a lawsuit from 4,500 retirees who claimed that the league had information about the dangers of head injuries from players. The two sides reached a $765 million settlement, which still has to be signed off by a judge.

According to The New York Times, in addition to the thousands of players who dealt with health issues linked to head injuries, the plaintiffs included the family members of deceased players whose deaths were linked to head trauma.

The settlement breaks down to $675 million that will go directly to the players who suffered concussions, $75 million for medical exams and $10 million for a research fund.

The Chicago Tribune notes that the agreement came after U.S. District Judge Anita Brody ordered the two sides to meet with a mediator to hammer out a deal. The deal still has to be submitted to Philadelphia federal court.

“This is a historic agreement, one that will make sure that former NFL players who need and deserve compensation will receive it, and that will promote safety for players at all levels of football,” mediator and retired federal judge Layn Phillips said in a statement. “Rather than litigate literally thousands of complex individual claims over many years, the parties have reached an agreement that, if approved, will provide relief and support where it is needed at a time when it is most needed.”

The settlement does allow the NFL to avoid a lengthy lawsuit process that would have likely involved executives and doctors taking the stand. As the Times notes, though, the league did not admit that it hid the facts about concussions from players.

“The big picture was we got immediate care to the retired players, and I think we accomplished that,” Christopher Seeger, the lawyer for the plaintiffs, added.

NFL Executive Vice President Jeffrey Pash also issued a statement, noting “This agreement lets us help those who need it most and continue our work to make the game safer for current and future players. Commissioner Goodell and every owner gave the legal team the same direction: do the right thing for the game and for the men who played it.”