The U.S. Court of Appeals for the Second Circuit held Thursday that Victor Miller, who wrote the screenplay for ”Friday the 13th,” can reclaim authorship rights for his work, more than 40 years after the iconic horror film debuted in 1980.

The ruling, from a three-judge panel of the Manhattan-based appeals court, upheld a Connecticut federal judge’s decision, which found that Miller had acted as an independent contractor—and not as an employee of the director’s production and distribution company—when he began drafting the screenplay in 1979.