present at the San Francisco Navy Yards when the vessel's major components were built and prepared for assembly in Starfleet's orbital drydock facilities (episode, "The Counter-Clock Incident"). The Enterprise-D and USS Voyager are depicted to have been constructed at a shipyard named Utopia Planitia in Mars orbit. Utopia Planitia served as Starfleet's main ship yards throughout a large portion of Starfleet's existence. After the Enterprise-D encountered the Borg in the episode "Q Who" the size of the Utopia Planitia shipyards was doubled out of fear of a Borg strike. They were once again doubled after the Dominion threat became more evident. A devastating attack on these shipyards is a major plot point in Star Trek: Picard. In the 2009 film, the Enterprise is shown under construction near James T. Kirk's home in Iowa. In the 2013 sequel, Montgomery "Scotty" Scott discovers a covert Starfleet facility, near Jupiter, that has built a much larger Federation warship, USS Vengeance. Starfleet Engineering Corps The Starfleet Engineering Corps (also called the Starfleet Corps of Engineers) is mentioned in several episodes in conjunction with projects such as hollowing out the underground laboratory complex inside the Regula I asteroid in Star Trek II: The Wrath of Khan, the design of the Yellowstone-class Runabout in the alternate timeline in the Star Trek: Voyager episode "Non Sequitur", and devising a defense against the Breen energy-dampening weapon in the Star Trek: Deep Space Nine episode "When It Rains..." As a result of these successes, Starfleet engineers gained a reputation as the undisputed masters of technological adaptation and modification. As one minion of the Dominion in the Star Trek: DS9 episode, "Rocks and Shoals" notes, Starfleet engineers are reputed to be able to "Turn rocks into replicators." Additionally, Pocket Books has published a series of eBooks and novels in the Starfleet Corps of Engineers series. Starfleet Intelligence Starfleet Intelligence is an intelligence agency of the United Federation of Planets. It is entrusted with foreign and domestic espionage, counter-espionage, and state security. Starfleet Judge Advocate General The Starfleet Judge Advocate General (or JAG) is the branch charged with overseeing legal matters within Starfleet. Several episodes revolve around or involve JAG officers and procedures: Captain James T. Kirk is the defendant in the TOS episode "Court Martial". Data participates in a JAG hearing to determine whether he is Starfleet property in the TNG episode "The Measure of a Man". A hearing is