The New York Yankees have reached an agreement on a minor league contract with starting pitcher Freddy Garcia, according to ESPN.

Garcia will receive a $1.5 million base salary, if he makes the big-league club. He can also earn $3.6 million in possible incentives, topping out at 30 starts, according to a source. It also lets Garcia opt out by March 29, according to a report.

Garcia, 35, pitched last season for the White Sox and was 12-6 with a 4.64 ERA in 28 starts, serving as one of the more reliable starters on Chicago’s staff. In 157 innings, Garcia allowed 85 runs (81 earned) and 171 hits, walking 45 and striking out 89.

A two-time All-Star, Garcia has won at least 16 games four times in his 12-year career. He has spent the majority of his career in the American League, working with the Seattle Mariners for six seasons and with the White Sox for five.

Garcia has also spent partial seasons with the Philadelphia Phillies and Detroit Tigers, compiling a career record of 133-87 with a 4.13 ERA.

There were reports this offseason that Garcia was being targeted by the Mets before they decided to sign Chris Young.

He will compete for the number five spot in the Yankees rotation.