The Miami Heat and forward Luol Deng agreed to a two-year, $20 million contract on Sunday, according to CBS Sports.

The deal allows Deng an option after the first year.

Deng is expected to start at small forward, replacing star LeBron James, who left for the Cleveland Cavaliers.

ESPN.com reported that the two sides were far apart in negotiations as of Saturday night and that Deng had been rejecting deals that would pay him $10 million per year.

Deng was reportedly seeking a deal that would pay him about $13 million per season, but decided to settle on the Heat's offer.

According to Yahoo Sports, other teams were interested in Deng, including the Atlanta Hawks and Dallas Mavericks.

Deng averaged 16 points and 5.7 rebounds last season with the Chicago Bulls and Cavaliers. He spent the first nine-plus years of his NBA career with the Bulls until he was dealt to the Cavs during last season.

Deng, 29, is in his prime and can also help as a perimeter defender.