•  Actor/writer Simon Pegg attends the premiere of Paramount Pictures' 'Star Trek Beyond' in San Diego, California.

Actor/writer Simon Pegg attends the premiere of Paramount Pictures' 'Star Trek Beyond' in San Diego, California. (Photo : Getty Images/Kevin Winter)

"Star Trek Beyond" co-writer and actor Simon Pegg had an argument with director Justin Lin when Lin said that he had plans on blowing up the Starship Enterprise.

Warning: Text contains spoilers below.

Pegg, who plays as Lieutenant Commander Montgomery "Scotty" Scott in the franchise's new film, had a disagreement with Lin because the director wanted to have the USS Enterprise destroyed. Pegg hated the idea at first and had heated arguments with the moviemaker because of it, to the point that he was shouting at him to the phone, "You can't do that and detroy the Enterprise!"

Like Us on Facebook

But as time progressed, Pegg backed down when he was beginning to understand what Lin's plans were. "He was not only taking out a main character; he was removing the physical connective tissue between the crue to see what happens when you take away the thing that physically bonds them together," Katu quoted him as saying.

Pegg further stated that the characters were a family, and that there's the anticipation of seeing if they'll return together. Obviously they will come back together, so he agreed and accepted Lin's choice of the dramatic sequence. He was vehemently opposed until he saw the brilliance behind the idea.

Star Trek Beyond features an ensemble cast featuring Zachary Quinto, Karl Urban, Zoe Saldana, and even a cameo feature of the director's son, Oakley, as an alien. The film also features the late Anton Yelchin, who died last month, June 19, in a car accident outside his home.

In addition, there was also a "kiss" between two male characters in the film, The Guardian quoted Jon Cho as saying, but it was removed. This is the first time that Star Trek had portrayed a character as being gay, and Pegg stated that the representation of the same-sex couple was quite well-handed, and might even be used again the future.

Pegg also said that the same-sex couple angel was handled because it felt that it was a meaningful part of the story, and not just because they wanted to do it for the sake of it. George Takei, who is an advocate of LGBT causes, liked the introduction of an LGBT character but felt disappointed that it had to be Cho's character.