Simon Pegg will co-write the next Star Trek movie, after the original screenwriter left the project.
Roberto Orci, who was also slated to direct Star Trek 3, pulled out last month reportedly after disagreements over the script.
Orci, who co-wrote the last two films in the series, has been replaced in the director's chair by Justin Lin, best known for the Fast and Furious movies.
Pegg has taken over scripting with the help of TV writer Doug Jung.
The 44-year-old will also reprise his role as engineer Montgomery "Scotty" Scott in the franchise, which was successfully relaunched by director JJ Abrams in 2009.
Film company Paramount still hopes to meet the scheduled release date of July 2016.
Sci-fi fan Pegg rose to fame in British TV comedies Big Train and Spaced, before being cast as Benji Dunn in Tom Cruise's Mission Impossible films.
He has previously scripted box office hits Shaun Of The Dead, Hot Fuzz and The World's End - his "cornetto trilogy" of British comedies with director Edgar Wright.
His role on the as-yet-titled Star Trek film was confirmed by Harmony Carrigan, who runs Pegg's Twitter account.