Willie Cauley-Stein has agreed to a two-year deal worth $8.2 million to return to playing for the Dallas Mavericks, according to Shams Charania of The Athletic.

Charania has since added that the second year of the player’s new deal is a team option.

“Mavericks quietly received strong consideration from Marc Gasol since the start of free agency, but moved to re-sign Cauley-Stein today,” the NBA insider also tweeted on Sunday.

Cauley-Stein opted out of his $2.29 million player option to become an unrestricted free agent last week and has earned himself a bigger deal having decided to return to Dallas.