LOS ANGELES (AP) — Free-agent pitcher Brandon Beachy and the Los Angeles Dodgers have agreed to a $1.5 million, one-year contract.

The 29-year-old right-hander spent last season in the Dodgers’ organization, making two big league starts after being reinstated from the 60-day disabled list on July 11. He finished the season in the minors, going 1-1 with a 3.51 ERA in 11 games with Class A Rancho Cucamonga and Triple-A Oklahoma City.

READ MORE: How To Watch The 2021 Primetime Emmy Awards

Beachy was 0-1 with a 7.88 ERA in his two starts with the Dodgers.

The deal announced Wednesday is not guaranteed, and Beachy would receive a $250,000 bonus if he is on the opening-day roster.

READ MORE: Man Struck Multiple Times In Daylight Shooting In Riverside

He could earn $750,000 in performance bonuses based on games: $100,000 each for 30, 40 and 45, and $150,000 apiece for 50, 55 and 60. He also could make $2.75 million based on starts: $250,000, $500,000 each for 15 and 20, and $750,000 apiece for 25 and 30 starts.

Beachy is 14-12 with a 3.36 ERA in 48 major league starts over five seasons with the Braves and Dodgers, having missed long stretches after Tommy John surgeries in June 2012 and March 2014.

To make room on the 40-man roster, the Dodgers designated left-hander Tyler Olson for assignment. He was acquired from the Mariners on Dec. 18 after going 1-1 with a 5.40 ERA in 11 relief appearances with Seattle last season.

MORE NEWS: Emmys Vow A Good Time After Bleak Year; 'Crown' May Rule

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)