The United States’ top general said on Thursday that the Chinese military was benefiting from the work Alphabet Inc’s Google was doing in China, where the technology giant has long sought to have a bigger presence, Reuters reported.

“The work that Google is doing in China is indirectly benefiting the Chinese military,” Marine General Joseph Dunford, chairman of the Joint Chiefs of Staff, said during a Senate Armed Services Committee hearing.

“We watch with great concern when industry partners work in China knowing that there is that indirect benefit,” he said. “Frankly, ‘indirect’ may be not a full characterization of the way it really is, it is more of a direct benefit to the Chinese military.”