The Baltimore Orioles have agreed to a three-year, $35 million deal with right-handed starting pitcher Yovani Gallardo, according to Jon Heyman of MLB Network. The contract has a fourth year option, which could earn Gallardo $13 million, reports Chris Cotillo of SB Nation

Eduardo Encina of the Baltimore Sun reported on Saturday that the two parties were close to a $35-40 million dollar deal. The deal does not include any no-trade clauses, but it does include small awards packages as incentives, according to Cotillo. Gallardo will cost the Orioles the No. 14 pick in the 2016 MLB Draft. Dexter Fowler, who Baltimore is considering, would cost the No. 28 pick. 

Gallardo was noted as the best remaining free agent on the board after a lot of big name free agents dropped off early and often. Baltimore had been working on a deal for Gallardo for quite some time and eventually things worked out for both sides. 

The Orioles signed slugger Chris Davis to a seven-year, $161 million deal on January 16, 2016 to be the primary first baseman in Baltimore for the foreseeable future, as first reported by Heyman. It was made known that after losing Wei-Yin Chen to the Miami Marlins in January and giving a big time contract to Davis, the Orioles needed to chase down a pitcher like Gallardo to upgrade the rotation. 

Gallardo, 29, pitched a career-best 3.42 ERA with a 13-11 record across 184.1 innings pitched in 2015 with the Texas Rangers. The righty dropped his strikeout-to-walk ratio to 1.78, but he logged a 1.416 WHIP, which is the worst of his big league career. 

Five starts and six appearances have been made in the postseason by Gallardo, four starts with the Milwaukee Brewers and one start with the Rangers. Across 31.0 innings, Gallardo has gone 2-2 with a 2.32 ERA, 1.290 WHIP and a 1.50 strikeout-to-walk ratio. Baltimore will enjoy his veteran ability and experience in the postseason. 

The best season for Gallardo was in 2010, which he went 14-7 with a 3.84 ERA during 31 games and 185.0 innings pitched. He earned All-Star Game honors and added a National League Silver Slugger award. The next year, 2011, Gallardo finished seventh in National League Cy Young voting due to a 17-10 record across a career-high 207.1 innings pitched.