NASHVILLE, Tenn. (AP) — Free agent Jeff Samardzija and the Giants have finalized a $90 million, five-year contract, giving San Francisco a top-tier starter to complement ace Madison Bumgarner.

The deal was reached Saturday and completed Wednesday, a day after Samardzija took a physical.

Samardzija won 11 games this year for the Chicago White Sox for his first double-digit victory total in eight major league seasons, going 11-13 with a 4.96 ERA in 32 starts. The 30-year-old right-hander spent the second half of the 2014 season pitching in the Bay Area with the Oakland Athletics following his trade from the Chicago Cubs. The 214 innings in 2015 were the second-highest total of his career.

Samardzija receives a $9 million signing bonus, of which $3 million was due Dec. 5 and the rest to be paid in $1.5 million installments each Jan. 15 from 2017-20.

to be paid out soon, plus an additional $6 million to be spread over the final four years of the deal in installments of $1.5 million each. He has a limited no-trade clause that gives the pitcher the ability to name eight teams to which he would accept a trade.

His 2016 salary will be $9 million, then $18 million in each of the following four years plus the $1.5 million from the signing bonus.