Despite being one of the most successful directors on the planet, Michael Bay has elicited some serious backlash over the course of his career. And sure, most of his movies are big, loud, misogynistic, and dumb, but for Transformers: The Last Knight, the director is also performing one hell of a good deed.

There’s a famous dog named Freya in the U.K., although she’s famous for an incredibly sad reason. Dubbed “Britain’s Loneliest Dog,” Freya has spent the entirety of her life thus far—six years—in animal shelters and has been passed over by 18,000 passers-by. She suffers from epilepsy and, as such, has had trouble finding a home. Bay saw the news item and promptly wielded the power presumably only someone like Michael Bay has, picking up the phone, finding the dog, and casting it in one of the biggest movie franchises of all time.

Yes indeed, Freya is now “Britain’s Loneliest Dog” and “Britain’s Most Famous Transformers Star,” as Bay has enlisted the adorable pooch for his Transformers 5 ensemble. Moreover, Bay says they’re going to find her a home, and if they can’t, she’ll live with him. Cue all the “awwwww”s.

So yeah, that’s pretty darn heartwarming. I mean look at that face! Sure The Last Knight is probably going to be incredibly dumb, but at least one good thing has come out of the Transformers franchise. See Bay’s tweets below for a closer look at Freya. The fifth Transformers movie is directed by Bay and stars Mark Wahlberg, Anthony Hopkins, Josh Duhamel, and Jerrod Carmichael. After pre-shoots in Cuba, principal photography on Transformers: The Last Knight is currently underway and the film opens in theaters on June 23, 2017.

Found this in the news last week in the UK. We gave the Loneliest Dog, a role in Transformers. (1/3) pic.twitter.com/u4NIBRmvPH — Michael Bay (@michaelbay) June 2, 2016

Freya, has epilepsy and has been in a shelter her whole 6 year life.We are also going to find her a home. (2/3) pic.twitter.com/JVLXnvRTU8 — Michael Bay (@michaelbay) June 2, 2016