By Josh Clark

DALLAS (105.3 The Fan) – The Dallas Mavericks finalized an agreement with Dirk Nowitzki on Thursday night, the team announced.

Terms of the deal weren’t released, but Tim MacMahon of ESPN reported that it’s a two-year agreement worth $10 million.

gettyimages 514087196 Mavs Finalize Two Year Agreement With Dirk

DENVER, CO – MARCH 06: Dirk Nowitzki #41 of the Dallas Mavericks celebrates a three point basket against the Denver Nuggets at Pepsi Center on March 6, 2016 in Denver, Colorado. The Nuggets defeated the Mavericks 116-114 in overtime. NOTE TO USER: User expressly acknowledges and agrees that, by downloading and or using this photograph, User is consenting to the terms and conditions of the Getty Images License Agreement. (Photo by Doug Pensinger/Getty Images)

The second year of the deal is a club option, according to MacMahon’s sources.

This coming season will be Dirk’s 20th in the NBA, making him and Kobe Bryant the only two players to have played at least 20 seasons with the one franchise.

Nowitzki, a 13-time all-star, is sixth all-time on the NBA’s scoring list and is only  1,159 points behind Wilt Chamberlain for fifth on the list.

The just turned 39-year-old averaged 14.2 points and 6.5 rebounds per games in 2016.