DES MOINES, Iowa (AP) — An Iowa-based youth basketball league has agreed to settle a class-action lawsuit filed by former players.

The players alleged a coach secretly recorded them undressing or obtained nude photos of them.

Gregory Stephen is now serving a lengthy prison sentence for sexual exploitation of minors.

Guy Cook, the lawyer for boys who played Barnstormers Basketball of Iowa games from 2005 to 2018, said the league has agreed to settle the case by establishing a fund of more than $1 million to compensate victims.

A judge must sign off on the agreement before it’s finalized.