The Philadelphia Phillies have agreed to a two-year, $12 million contract with free-agent reliever Mike Adams, according to FoxSports.com. The deal includes a vesting option for a third year.

Adams, 34, went 5-3 with a 3.27 ERA in 61 appearances with the Texas Rangers this past season. He struck out 45 batters in 52 1/3 innings.

Over the past five seasons with the Rangers and San Diego Padres, Adams has been among the majors’ best late-inning relievers. His 1.98 ERA over that span ranks third among all relievers, and he ranks first in holds (122) and 15th in strikeouts (311).

Adams will address a major need for the Phillies, serving as a setup man for closer Jonathan Papelbon. Philadelphia’s bullpen blew 19 save opportunities this past season and posted a 3.85 ERA.