Glee creator Ryan Murphy has revealed the show will sing its final song, when it bows out after the sixth series.
The American writer and producer, who created the hit programme with Brad Falchuk and Ian Brennan, confirmed that season six will be the last.
He also admitted that the death of Cory Monteith, who played Finn Hudson, has made him rethink the plans for the final episodes, which he originally wanted to focus on the romance between Finn and Rachel Berry (played by Lea Michele).
"The final year of the show, which will be next year, was designed around Rachel and Cory/Finn's story," he told TVLine.com.
"I always knew that, I always knew how it would end. I knew what the last shot was - he was in it. I knew what the last line was - she said it to him. So when a tragedy like that happens you sort of have to pause and figure out what you want to do, so we're figuring that out now," he added.
Cory died after an accidental drug and alcohol overdose in July.
Ryan, who honoured the Canadian actor with a tribute episode titled The Quarterback in the fifth series, teased that the next season will include a final closure to the late star.
"I have a good idea. I'm going to tell the studio and the network [in a week] how after Cory's unfortunate passing we can end the show that I think is very satisfactory. And kind of in his honour, which I love," he said.