New York Minor league players reached an initial historic collective bargaining agreement with Major League Baseball’s front office on Wednesday that will more than double their pay, a person familiar with the negotiations said.

The source spoke to The Associated Press on condition of anonymity because details have not been officially released.

Under the five-year agreement, Major League Baseball agreed not to reduce the number of minor league affiliates from the current 120.

The agreement came two days before the start of the minor league season and just hours before a federal judge approved a $185 million settlement reached with Major League Baseball last May in a lawsuit filed in 2014 alleging violation of the federal minimum wage law.

Union officials recommended approval, and about 5,500 minor leaguers would vote Thursday. The major league clubs must also vote on the deal and will do so next week.

The minimum wage will increase from $4,800 to $19,800 at the entry level; from 11,000 to 26,200 in low class A; from 11,000 to 27,300 in class A High; 13,800 to 27,300 in Double A and 17,500 to 45,800 in Triple A.

And for the first time, players will be paid in the offseason.

Most players will have guaranteed housing, while Double-A and Triple-A players will receive a single room.

High and Low A players will have the opportunity to exchange club housing for a scholarship.

The union agreement includes policies against domestic violence and drug use. Players who first signed at age 19 or older can become minor league free agents at age six instead of age seven.

Minor leaguers will receive four weeks of compensation during spring training this year. They will receive $625 per week for preseason and offseason training camps, and $250 per week for offseason home workouts.

From 2024, clubs can have a maximum of 165 players under contract in season and 175 in off-season, up from the current 190 and 180 respectively.

The union will deal with group licensing of players’ rights.