Although the screenplay for "Raging Bull" was credited to Paul Schrader and Mardik Martin (who earlier co-wrote "Mean Streets"), the finished script differed extensively from Schrader's original draft. It was rewritten several times by various writers including Jay Cocks (who went on to co-script later Scorsese films "The Age of Innocence" and "Gangs of New York"). The final draft was largely written by Scorsese and Robert De Niro. The American Film Institute chose "Raging Bull" as the number one American sports film on their list of the top 10 sports films. In 1997, the Institute ranked "Raging Bull" as the twenty-fourth greatest film of all time on their AFI's 100 Years ... 100 Movies list. In 2007, they ranked "Raging Bull" as the fourth greatest film of all time on their AFI's 100 Years ... 100 Movies (10th Anniversary Edition) list.