"Star Trek Beyond" co-writer -- and Scotty actor -- Simon Pegg has revealed the help he got from the Memory Alpha "Star Trek" fan wiki, in addition to clarifying that the film wasn't influenced by the former "Star Trek III" or the upcoming Bryan Fuller-written TV series.

"We had the entirety of 'Star Trek' history at our disposal and it’s always there online," Pegg said at CinemaCon (via SuperHeroHype). "There's an amazing Wikipedia online called Memory Alpha. It became Doug [Jung] and my resource and the place that we’d turn to whenever we wanted to know, 'What kind of weapons does an NX vessel carry?' Memory Alpha has it. We actually wrote to the Memory Alpha guys and got them to name a certain device in the movie. I sent them a letter saying, 'Can you come up with this for me?' In two hours, they came back with an entire etymological history of what the thing was. It’s beautiful. It’s fantastic to have that support network."

When asked if "Beyond" would be a "Search For Spock" parallel, Pegg said, "No...although we were obviously aware of the coincidence of those two films. That might be a little nod for fans perhaps, but it’s certainly not something that the film depends upon or has any relationship to the plot of the previous 'Star Trek III.'"

Pegg was also asked if the upcoming TV series impacted his film, to which he replied: "Absolutely not! 'Star Trek' has existed for 50 years in very different iterations. There are so many different points from the history of the Federation, from the very beginnings in 'Enterprise' to much later on with 'Voyager' and 'Next Generation.' This is a story that will go on and on. It’s a continuing mission. It must have life on television as well as film. It started out as a TV show. It’s home was television. I’m overjoyed at that news and I can’t wait to see what they do."

"Star Trek Beyond" hits theaters on July 22.