The St. Louis Cardinals have signed Miles Mikolas to a two-year contract extension.

Mikolas is adding $40 million to his contract in the new deal, according to sources. The right-hander will receive a $5 million signing bonus and a $3 million boost to his 2023 salary from $15.75 million to $18.75 million. Mikolas will then make $16 million per year in 2024 and 2025.

The 34-year-old was entering the final season of a four-year contract extension that he signed in 2019.