James Nunnally has agreed to a two-year contract with the Timberwolves.

The 6-7 guard has played the past two seasons for Fenerbahce (Turkey) in the EuroLeague. Fenerbahce won the Turkish League the past two seasons; his three-point field goal percentage last season was .554.

He fills a “3-and-D” role befitting a player who specializes in long-distance shooting and defense.

Nunnally, 28, played four games for Atlanta and nine for Philadelphia during the 2013-14 NBA season. He was undrafted in 2012 out of UC-Santa Barbara, and was an All-Star in 2014 in the NBA D League (now G League) when he played for Bakersfield and Texas.

Yahoo! Sports was first to report the agreement. Nunnally will earn the veteran’s minimum ($2 million per season), with incentives built into the deal.