The Orioles reached terms on a two-year agreement with relief pitcher Darren O’Day to avoid arbitration.

According to Jon Heyman of CBSSports.com, the deal is worth $5.8 million and includes a club option for the 2015 season worth $4.25 million and comes with a $400,000 buyout. O’Day was the Orioles’ only remaining arbitration-eligible remaining without a contract for the 2013 season.

O’Day emerged as one of the most effective members of the Baltimore bullpen last season, posting a 2.28 earned run average in 67 innings of work. O’Day also pitched seven shutout innings in the postseason.

The Orioles claimed O’Day off waivers from the Texas Rangers on Nov. 2, 2011. The submarine-style pitcher made $1.35 million last season.