The Texas Rangers agreed to terms on a two-year deal with free agent starting pitcher Andrew Heaney on Tuesday, further bolstering a rotation that previously added Jacob deGrom, a source told ESPN.

Heaney's two-year deal, which is pending a physical, is valued at $25 million but can increase to $37 million with incentives. It includes an opt-out after Year 1.