Free agent shooting guard Nick Young and the Golden State Warriors have agreed to a one-year deal worth $5.2 million. Young’s agent, Mark Bartelstein, informed Adrian Wojnarowski of ESPN of the deal. Young, dubbed Swaggy P also received a reported two-year deal worth $4.3 million per season from the Minnesota Timberwolves but he opted to join the Warriors, as they have a better chance of repeating as NBA champions.

The New Orleans Pelicans and the Oklahoma City Thunder were also interested in Young, who started a career-high 60 games for the Los Angeles Lakers last season.

However, he will play a different role with the Warriors, who are stacked with superstars and role players.

Last season, Young averaged 13.2 points per game on top of a 40.4 percent from beyond the arc. Warriors head coach Steve Kerr and several Golden State players, led by Draymond Green, recruited Young to the squad. He will be teamed up with superstars Kevin Durant, Stephen Curry, Green and Klay Thompson, along with sixth man Andre Iguodala.

Durant immediately welcomed Young to the Warriors, posting on Twitter a picture of his new teammate prematurely celebrating a three-point attempt that rattled out of the basket.

Young thanked Luke Walton for career resurgence

Young credited the revival in his career to Lakers coach Luke Walton, who gave him the opportunity to play.

A 16th overall pick by the Washington in 2007, Young played 4 ½ seasons with the Wizards before he was traded to the Los Angeles Clippers midway through the 2011-12 season. The next year, he signed a one-year deal with the Philadelphia 76ers before joining the Lakers the following year, signing a two-year deal worth $2.33 million.

In 636 regular-season games, Young averaged 12.0 points, 2.0 rebounds and 1.0 assists, and made 37.6 percent of his attempts from three-point range.

Warriors also sign forward Omri Casspi

Before taking in Young, the Warriors also signed journeyman forward Omri Casspi to a one-year deal, veteran minimum deal. Last season, Casspi played for the Sacramento Kings, New Orleans Pelicans, and Minnesota Timberwolves.

In just 36 games, he averaged 5.2 points and 3.1 rebounds. Casspi hopes to revive his career with the Warriors after a down season where he also suffered a thumb injury. During the 2015-16 season with the Kings, he averaged 11.8 points, 5.9 rebounds and 1.4 assists in a career-high 27.2 minutes per game.