The Diamondbacks have agreed to a minor-league deal with righty Kris Medlen, according to Bob Nightengale of USA Today (via Twitter). He’ll have an opt-out opportunity on March 27th if he’s not added to the MLB roster. If he is, Medlen can earn $1.1MM for the coming season.

Medlen, who is now 32 years of age, had returned to the Braves organization in 2017 as he continued to attempt to get his career back on track. He made twenty starts in the minors, but failed to receive an opportunity at the game’s highest level in Atlanta. Through 94 2/3 innings at Triple-A, Medlen carried a 5.42 ERA With 8.0 K/9 and 2.2 BB/9.

Once a quality starter for the Braves, Medlen saw his career derailed by successive Tommy John surgeries. He made it back to the majors with the Royals after missing all of the 2014 season, showing some promise in his first year with Kansas City. But Medlen stumbled in 24 1/3 MLB innings in 2016, allowing 21 earned runs while handing out twenty free passes in a season marred by shoulder issues.

For Arizona, Medlen becomes the latest hurler to join on with a chance to compete for a bullpen spot in camp. It’s also possible he could function as a starter, of course, though the odds would appear to be stacked against him making the team in that role.