Right out of the gate, "Deadpool" has enjoyed enormous box office success, but the road to making the film a reality wasn't always so smooth. During an interview with Entertainment Weekly, director Tim Miller recalled the moment he found out about the leaked footage as well as the long road to making "Deadpool" a reality at Fox.

"I had just gotten home from the train station from San Diego," Miller recalled, "and my phone blows up with Google alerts about 'Deadpool' and I see the test had leaked. And I was horrified. I immediately wrote Fox an email and said 'I swear on my daughter's life I didn't leak this test.'"

"But within two months we were greenlit," he added.

RELATED: 5 Ways "Deadpool" Flipped the Superhero Movie Script

It was ultimately the fan reaction to the test footage that convinced studio execs, as Miller explained, "It was up to the point where the senior execs at Fox were looking at it. [Fox chairman] Tom Rothman just said, 'No. We don't get it.' Tom told me, 'Love your passion but I just don't care for the script. Don't get it.'"

"I wrote an email once a month or so to the Fox executives, saying 'Please tell me who I have to f- to get this going?'" he said. "And the answer was, 'It's not the right time, we appreciate your passion.' I wrote a lot of emails and I'm sure I annoyed the s- out of them."

Directed by Tim Miller, "Deadpool" stars Ryan Reynolds, T.J. Miller, Morena Baccarin and Gina Carano. The film is now in theaters.