Free agent Max Strus has agreed on a four-year, $63 million sign-and-trade with the Cleveland Cavaliers.

In a three-team deal, the Miami Heat get a second-round pick and the San Antonio Spursacquire Cedi Osman, Lamar Stevens and a second round pick. The Cavs worked the three-way deal through late Friday to close on Strus acquisition.

Strus, 27, averaged 11.5 points per game last season and was a key piece of a Heat group that made a surprising run to the NBA Finals.

Strus received praise from his teammates and coaches over the past few seasons because of a solid work ethic and an ability to hit shots from the outside. Strus started all 23 games for the Heat in the playoffs after starting all 18 games in the postseason a year ago during Miami’s run to the Eastern Conference finals.

The DePaul alum is a career 37.1% shooter from beyond the arc but ran hot and cold during the playoffs. He was a good barometer for how well Miami played as he shot 37.2% from 3 in wins and 24.6% in losses.