Following NATO estimates that around 40,000 Russian soldiers have either been killed, wounded, missing, or captured, Ukrainian officials revealed that they have been using facial recognition technology to identify the corpses of fallen Russian soldiers.

They use this information to trace their families and notify them of their deaths in either a heartless move or a humane act of kindness, depending on how you see it. Afterward, families can coordinate with Ukrainian authorities to arrange the collection of their dead.

“As a courtesy to the mothers of those soldiers, we are disseminating this information over social media to at least let families know that they’ve lost their sons and to then enable them to come to collect their bodies,” Ukrainian Vice Prime Minister Mykhailo Fedorov said. It is important to note that Fedorov also heads the Ukrainian Ministry of Digital Transformation.

Reports from Reuters earlier this month said that the Ukrainian Ministry of Defense was offered support by Clearview AI, an American firm that specializes in facial recognition software. At the time, the applications of the technology were still unverified.

The service works by scouring the internet for publicly available images and cross-referencing them with uploaded photos. The firm claimed to have over 2 billion images in its search engine from the popular Russian social media platform VKontakte. Their assistance for Ukraine was free of charge, according to the company.

The Ukrainian government has provided an online form for Russian relatives to claim the dead bodies. However, Fedorov did not give details on the logistics of transporting the bodies back to Russia.

In response to this technology, a Kremlin spokesman said, “We have no knowledge of this. There are too many fakes coming out of Ukraine.” The representative did not give further information.