optimize the targeting system of the array. Enterprise is then ordered to Mars to destroy the array, but is turned away when a warning shot from the weapon damages the ship. Gannet Brooks, now in the brig, reveals to Ensign Mayweather she is a Starfleet Intelligence operative, and that Terra Prime probably has an operative aboard. Under the urging of Minister Samuels, the crew of Enterprise conceive a way to approach the deadly station undetected, using a shuttlepod hidden inside the tail of a comet. Captain Archer elects to lead the away mission, along with Lieutenant Reed, Doctor Phlox, and Mayweather. En route, the shuttle's systems suddenly fail, nearly causing it to crash. Landing on Mars, the team then infiltrate Paxton's ship. Teaming up with Tucker, who has escaped his cell, they battle the Terra Prime followers in the control room. During the shootout, Paxton manages to lock the firing sequence — fortunately, Tucker has altered the targeting, and the beam misses. With Paxton under arrest, the hybrid child, named Elizabeth after Tucker's sister, is brought to Phlox, who unfortunately cannot do anything to save her. Investigations also reveal that Ensign Masaro was the spy, and he dies by his own hand. Back at Starfleet, Archer makes an impassioned speech to convince the delegates to explore the universe's mysteries together. Production Judith and Garfield Reeves-Stevens created the story with André Bormanis and developed it into a script with show runner Manny Coto. Because of the nature of the two-part episode, revisions to the scripts for both "Demons" and "Terra Prime" were required as changes occurred in the other script. The Reeves-Stevens felt that a "ticking clock" was required for "Terra Prime", and so the 24-hour deadline set by Paxton's group was written into the end of "Demons". That exact ending was changed on several occasions which resulted in modifications to the "Terra Prime" script. Other changes were made following the filming of "Demons" as the Reeves-Stevens changed some of the dialogue for Paxton after seeing Peter Weller's performance. Shran, played by Jeffrey Combs, was written out of the episode as the decision was made to have the character appear in the series finale instead. Filming began on "Terra Prime" on the afternoon of February 15, 2005 and continued until February 25. It was the second episode to be directed by Marvin Rush, who had previously worked on the second part