FORT MYERS, Fla. (AP) — Closer Glen Perkins and the Minnesota Twins have agreed to a four-year contract that guarantees the pitcher $22,175,000.

Perkins had been due $4,975,000 this year and $3.75 million in 2015 under his previous deal, which included a $4.5 million team option for 2016 with a $300,000 buyout.

His new contract calls for him to earn $4,025,000 this year, $4.65 million in 2015, $6.3 million in 2016 and $6.5 million in 2017. The Twins have a $6.5 million option for 2018 with a $700,000 buyout.