Ennio Morricone will score "The Hateful Eight" for director Quentin Tarantino despite the composer previously stating that he "wouldn't like to work with him again, on anything."

Tarantino brought Morricone on stage during the movie's panel at San Diego Comic-Con on Saturday to make the announcement. It will be the 86-year-old composer's first Western score in 40 years, according to Deadline.

The five-time Oscar nominee has worked with Tarantino on four previous films including the "Kill Bill" movies, "Inglorious Basterds" and "Django Unchained." After "Django," Morricone slammed the director as difficult to work with because he "places music in his film without coherence" and "you can't do anything with someone like that," he told students at Rome's LUISS University in 2013.

Morricone later said his words were taken out of context and there was no feud between him and Tarantino.

"I have a great respect for Tarantino... I am glad he chooses my music, a sign of artistic brotherhood," he told Entertainment Weekly in a statement a few days later. "The risk for me, when I compose, is not to be consistent with the film work and my desire is that the director accepts my consistency."

Morricone is best known for his work on the Spaghetti Western scores of Sergio Leone's movies including "The Good The Bad and the Ugly" and "A Fistful of Dollars." He also has worked with directors Brian De Palma, Barry Levinson, Mike Nichols and Oliver Stone.

"The Hateful Eight" will have a 70mm-only limited release on Christmas Day and is set for wide release on Jan. 8.