Captain Montgomery Scott (referred to as Scotty by his shipmates) was a male Human Starfleet officer in the 23rd century. His serial number was SE 19754 T. For a period of nearly thirty years, he was the chief engineer of both the USS Enterprise and the USS Enterprise-A, both under the command of Captain James T. Kirk. Having the reputation as a "miracle worker", he was a man of superior technical and engineering skill, experience and ingenuity. Despite his superior talents as an engineer, he was often the source of comic relief amongst the crew due to his use of Scots language. (TOS: "Wolf in the Fold", "Where No Man Has Gone Before", "The Trouble with Tribbles"; Star Trek III: The Search for Spock; Star Trek V: The Final Frontier; Star Trek VI: The Undiscovered Country; TNG: "Relics")