at the wormhole. Production The title of the episode is based on a quote from Pericles: "What you leave behind is not what is engraved in stone monuments, but what is woven into the lives of others". The episode was written by Ira Steven Behr and Hans Beimler and directed by Allan Kroeker. An early draft of the script had Sisko dying during the final battle at Cardassia, but resurrected by the Prophets to fight the Pah-wraiths. Sisko's joining with the Prophets following Dukat's defeat was originally going to be permanent but actor Avery Brooks was "uncomfortable with the notion of a black man abandoning his pregnant black wife"; the line was rewritten upon Brooks's request to indicate that he would return. Keith DeCandido praised this move in his review. The producers also entertained the idea of a final shot of Benny Russell (from "Far Beyond the Stars" and "Shadows and Symbols") sitting outside a studio holding a script for Deep Space Nine. The final day of filming took place at Vic's lounge. In the episode, during the party, many of the background hologram characters are actually production staff and recurring cast members without their makeup and prosthetics. This is also one of two Star Trek series finales in which Jeffrey Combs, Michael Dorn, and Colm Meaney appear. Combs later appeared in the Star Trek: Enterprise series finale "These Are the Voyages..." as Shran; and Dorn and Meaney had already appeared in the Star Trek: The Next Generation series finale "All Good Things..." as Worf and O'Brien. Near the end of the episode, a montage is shown of the ensemble cast with footage from previous Star Trek: Deep Space Nine episodes. The music cues used prior to O'Brien's montage are from the Irish song "The Minstrel Boy", which previously featured in the Star Trek: The Next Generation episode "The Wounded". There are no clips featuring Jadzia Dax, because Terry Farrell and her manager reportedly refused the routine process of granting permission for her appearance in the clips, to the great disappointment of the staff. Ira Steven Behr guessed that Farrell's feelings might have been hurt regarding the staff's choice of flashback clips, and elaborated: "Her manager was informed that we were thinking of using Terry in a scene in the final episode. It would have probably been three hours of work ... maybe four. The price they quoted us was