BALTIMORE (WJZ) — The Washington Nationals have reached agreement with former Baltimore Orioles catcher Matt Wieters on a two-year, $21 million deal, a source confirmed to ESPN’s Jim Bowden on Tuesday.

Wieters hit 117 home runs in his eight-year career, all with Baltimore, and batted .243 with 17 home runs in 2016.

He accepted the Orioles’ qualifying offer after the 2015 season, playing on a one-year, $15.8 million deal as he completed a comeback from Tommy John surgery on his throwing elbow.

The Nationals are looking to replace Wilson Ramos, who departed as a free agent after tearing knee ligaments late last season.