Free agent point guard Yogi Ferrell has agreed to a two-year, $5.3 million deal with the Dallas Mavericks, according to Shams Charania of Yahoo Sports.

The second year of his deal will include a trigger date on Jul. 7 in which the Mavericks will be able to re-negotiate a deal with the 6-foot point man.

Both sides have been intensely working on getting a deal done throughout the week, finally hammering out a short-term deal to give the Mavs some depth under starter Dennis Smith Jr. and backup J.J. Barea.

Ferrell was promised the backup shooting guard position by the Mavs, something that could prove interesting, as he is giving up six-to-seven inches to modern NBA off-guards — a true challenge in itself coming in as a spot-up shooter.

The Indiana product broke into the league after impressing during his two 10-day contracts in 2016-17, dropping an impressive 31 points, which convinced owner Mark Cuban he was worth retaining due to his ability to spark the offense.