Ryan Anderson missed the New Orleans Pelicans‘ last 14 games with yet another nagging injury. But despite a growing list of ailments, the veteran forward has landed a four-year, $80 million contract with the Houston Rockets.

Adrian Wojnarowski of The Vertical first reported terms of the agreement, which can become official July 7. Marc Stein of ESPN received confirmation of the deal from Octagon, which represents the power forward.

Anderson, 28, averaged 17 points and six rebounds per game last season, recovering from a dismal 2014-15 campaign to become a Sixth Man of the Year contender. Although the award went to Jamal Crawford, Anderson finished in sixth place.

Despite his strong performance, the 2015-16 season was a mess for the Pelicans. They got off to a 1-11 start and never recovered, finishing 30-52. Anderson, Anthony Davis, Jrue Holiday, Eric Gordon and Tyreke Evans—their best five players—all sat out as the year came to a close with nagging injuries.