The Minnesota Twins have agreed to a five-year, $9.25 million contract extension with Randy Dobnak that includes three club options, according to sources.

The deal can max out at $29.75 million with the options and can increase with escalators.

Dobnak signed with the Twins in 2017 out of the independent United Shore Professional Baseball League for $500 after going undrafted.

The 26-year-old is 8-5 with a 3.12 ERA in 19 career appearances, including 15 starts, with the Twins.