The St. Louis Cardinals have agreed to a two-year, $37 million contract extension with Matt Carpenter.

The deal also includes an option for the 2022 season.

Carpenter, 33, has a $14.5 million salary this season as part of a $52 million, six-year deal that included an $18.5 million club option for 2020 with a $2 million buyout.

Under the new deal, he has guaranteed salaries of $18.5 million in both 2020 and 2021.