A new song by Bruce Springsteen is featured during the end credits of the new Miles Teller film, “Thank You for Your Service.” The song, “Freedom Cadence,” was written specifically for the movie, which opens Friday (Oct. 27).

The film centers on veterans from the Iraq war suffering from post-traumatic stress disorder and is based on the non-fiction book of the same title written by David Finkel. The story is based on the true story of soldier Adam Schumann, a sergeant with PTSD.

Film director Jason Hall told Backstreets.com that Springsteen became involved in the project through his friendship with director Jon Killk.

“[Schumann] had a cadence that they sang in boot camp, and Jon recorded him singing it on his cell phone… and played it for [Springsteen],” Hall explained. “Bruce was like, ‘Oh, that’s cool. How’d the movie turn out?’”

Hall adds that they then played the film for Springsteen who “loved it, watched it twice, and then said, ‘Send me that recording, come back in a month, and bring that kid.’ So Adam went up there with Jon and recorded the song with him.” Springsteen plays banjo and harmonium on the track, with Schumann providing backing vocals.

Springsteen has long supported veterans’ causes, beginning in earnest with “Born in the U.S.A.” (“a protest song,” he emphasizes during his current run of shows on Broadway) and his work at bringing greater awareness for Vietnam veterans, to his frequent appearances at Stand Up for Heroes and other benefits.

Don’t miss Variety‘s recent cover story interview with Springsteen.