<P> Unknown to the Ferengi, however, Constable Odo had stowed away aboard the shuttle with them and as a result was also thrown back in time . Using his shape shifter abilities, Odo is able to move about the base locating and repairing their spacecraft . He then appears as a German Shepherd guard dog in the room where the Ferengi are being held, and morphs into his normal form, telling Quark that he knew about the kemocite smuggling, and that they must try to preserve the timeline and not alter Earth history . Quark, Rom, and Nog then escape from custody with the help of an Army nurse and her college professor boyfriend who has been brought to the base to try to establish dialogue with the aliens . </P> <P> By harnessing the energy of an atomic bomb test scheduled for that morning, Rom is able to use the remaining kemocite to cause a temporal rift which returns them to their proper time . After dropping off Nog at Starfleet Academy, Quark has to sell the damaged spacecraft for salvage and he, Odo, and Rom return to Deep Space Nine . As the episode ends Odo is seen strong arming Quark off to a holding cell to face charges of smuggling contraband . </P> <P> The producers requested a "Megan Gallagher type" for one of the roles in the episode . Upon hearing about this, Gallagher's agent contacted them and said that Gallagher might be able to do it herself . Following this she was offered the part in the episode . She had previously appeared in the second season episode "Invasive Procedures" and would later appear in the Star Trek: Voyager episode "Body and Soul". </P>

Star trek deep space nine little green man cast