The Dallas Mavericks didn't land their top targets in free agency, but they've overhauled their roster with quality players at nearly every position.

The latest newcomer -- shooting guard O.J. Mayo -- agreed to a two-year contract late Monday and joins point guard Darren Collison, power forward Elton Brandon, center Chris Kaman and shooting guard Dahntay Jones on the new-look roster in Dallas.

The Mavericks lost guards Jason Kidd and Jason Terry in free agency and missed out of unrestricted free agent Deron Williams, a native Texan who opted to take the more lucrative five-year maximum contract offer to stay with the Nets.

Mayo played off the bench with the Grizzlies last season and could step right into Terry's role as the player coach Rick Carlisle counts on for instant offense as the sixth man. He also started every game during the first two seasons of his NBA career. He was drafted third overall in 2008 and dealt from the Timberwolves to Memphis.

The second year of Mayo's contract with the Mavericks is a player option.

Mayo averaged 12.6 points per game in 2011-12 but shot just 40.8 percent from the field.