Actor Ashton Kutcher sent a little love to Sen. John McCain (R-AZ) Wednesday during a Senate Foreign Relations Committee hearing focused on ending modern slavery and child sexual exploitation.

“You were better-looking in the movies,” McCain joked to Kutcher, before The Ranch star blew back a kiss in response.

During the hearing Wednesday, the 39-year-old actor — who co-founded the technology company Thorn, which builds software tools to combat child sexual exploitation and human trafficking — delivered a 15-minute speech detailing how technology can play a role in ending the vicious practices of rape and modern slavery.

“This is about the time, when I start talking about politics, that the Internet trolls start telling me to stick to my day job,” Kutcher told the panel, chaired by Sen. Bob Corker (R-TN).

But Kutcher said his day job comprised of working at Thorn to fight child sex crimes, and of being a father to two children.

“I’ve been on FBI raids where I’ve seen things that no person should ever see,” he said, appearing to choke up. “I’ve seen video content of a child that’s the same age as mine, being raped by an American man that was a sex tourist in Cambodia, and this child was so conditioned by her environment that she thought she was engaging in play.”

Kutcher said his company had once received a call from the Department of Homeland Security asking for help in locating a serial sex abuser.

“We were the last line of defense, an actor and his foundation, we were the potential last line of defense,” he said. “That’s my day job, and I’m sticking to it.”

Kutcher also discussed a tool that his company built called Spotlight, which allows law enforcement officers the ability to prioritize their case load. He said the program was already being used by more than 4,000 law enforcement officials in over 900 agencies.

“There’s often a misconception about technology; that in some way, it is the generator of some evil, that it’s creating job displacement and that it enables violence and malice acts,” he continued. “But as an entrepreneur and as a venture capitalist in the technology field, I see technology as simply a tool. A tool without will. The will is the user of that technology, and I think it’s an important distinction.”

“Technology can be used to enable slavery, but it can also be used to disable slavery, and that’s what we’re doing,” he added.

Watch Kutcher’s full speech above.

Follow Daniel Nussbaum on Twitter: @dznussbaum