Simon Pegg is a screenwriter .
Pegg wrote the characters `` Benji Dunn '' in the Mission : Impossible film series ( 2006-present ) , and `` Montgomery Scott '' in Star Trek ( 2009 ) , Star Trek Into Darkness ( 2013 ) , and Star Trek Beyond ( 2016 ) , co-writing the latter .