The Houston Astros acquired catcher Brian McCann from the New York Yankees on Thursday.

The Astros traded minor league right-handed pitchers Albert Abreu and Jorge Guzman in exchange for McCann.

“We entered the offseason with the acquisition of a catcher as a primary focus,“ said Astros General Manager Jeff Luhnow. “Brian McCann is a great fit for the Astros as he is not only a good defensive catcher, he is also a left-handed hitter with proven run producing ability. His experience and his ability to impact his teammates will be a significant benefit to our team.”

McCann, 32, batted .242 this season with 20 homers, 13 doubles, 58 RBI and 54 walks in 130 games. The seven-time All-Star appeared in 92 games behind the plate with the Yankees, and three at first base.

Over his 12-year MLB career, McCann has earned six Silver Slugger Awards. He spent his first nine seasons with the Braves (2005-13) and the last three with the Yankees (2014-16).

With McCann, the Astros now have 39 players on their 40-man roster.