After finalizing a buyout agreement with the Brooklyn Nets a few days ago, veteran point guard Deron Williams signed with the Dallas Mavericks on a two-year deal worth $10 million. The second year of the deal has a player option, which means Williams can potentially explore free agency again after the 2015-2016 NBA season.

The Mavericks officially announced the signing on social media and welcomed Williams to the team with a tweet.

Williams’ time in Brooklyn was forgettable, especially considering he signed a huge deal worth nearly $100 million in 2012 with the team. Williams had two years and more than $43 million left in his contract with the Nets before the buyout agreement, which was reportedly set at $27.5 million. Williams cleared waivers on Monday, paving the way for the Mavericks signing.

The point guard, who also played for the Utah Jazz from 2005 to 2011, averaged 13.0 points, 3.5 rebounds and 6.6 assists per game in 68 outings for the Nets in the 2014-2015 season.

The Mavericks are still reeling from the decision of DeAndre Jordan to renege on his verbal commitment to sign in Dallas and re-sign with the Los Angeles Clippers.

In Dallas, Williams will join a crowded point guard rotation, which also features veterans Devin Harris, J.J. Barea and Raymond Felton.