Rep. Richard Hanna, a Republican facing a primary challenge from GOP Assemblywoman Claudia Tenney, was endorsed on Wednesday by the National Rifle Association’s Political Victory Fund.

The endorsement comes as Tenney runs to Hanna’s right, charging that he is too moderate a Republican lawmaker in Washington.

The NRA, however, pointed to Hanna’s “A” rating from the firearms lobby and advocacy group.

“On behalf of our five million members across the country, the National Rifle Association Political Victory Fund (NRA-PVF) is proud to endorse Richard Hanna’s candidacy for the U.S. House of Representatives,” said James J. Baker, Director of Federal Affairs for NRA-PVF.

Hanna, in a statement, called the endorsement from the NRA a “privilege” — and one that could help to shore up support in a primary campaign, which tends to draw more conservative-aligned voters.

“Gun ownership is not only a right enshrined in our Constitution, but a way of life for many of us in upstate New York,” Hanna said in a statement. “I will continue to work diligently at the federal level to protect our Second Amendment rights.”