Wayne Ellington has agreed upon a two-year, $12 million deal with the Miami Heat.

The Heat are working on replacing Dwyane Wade on the wing.

Ellington averaged 7.7 points, 2.3 rebounds and 1.1 assists in 21.3 minutes per game last season with the Brooklyn Nets. Ellington is a career 37.6 percent shooter on three-pointers and shot 35.8 percent last season.