Zhou Qi has reached an agreement with his Chinese team, the Xinjiang Flying Tigers, that will allow him to buy out his contract and join the NBA in 2017, his agent Alex Saratsis confirmed.

After much back and forth, Zhou’s representation in China and the U.S. secured a buyout that will allow him out of his contract at the conclusion of next season for the maximum league mandated amount permitted, which is $650,000. With that hurdle now past him, Zhou will look to find an NBA team that will guarantee to select him in a favorable spot, likely in the first round after one more season in China.

Zhou could also decide to withdraw from this year’s draft and try to improve his standing in 2017.

Zhou is ranked 31st in the 2016 class by Draft Express.