In orbit, the Borg ship is detected and Dr. Crusher, acting as captain, orders the away teams to be beamed back aboard from the planet. There is not enough time to retrieve them all and 47 crew members remain on the planet. Riker orders Crusher to leave the area and come back only when it is safe, since the rogue Borg vessel has detected the Enterprise. Rather than leave the system, Crusher orders the crew to take the ship into the sun. Using the technology developed by Ferengi scientist Dr. Reyga, they modify the shields to allow them to get closer to the sun than the Borg can. They use the ship's phasers to trigger an eruption on the sun's surface which destroys the Borg ship. On the planet, Lore orders Data to perform an experiment on La Forge's brain – an irreversible procedure with a "60% chance" of being lethal. La Forge pleads with Data, who ignores him and continues setting up the process. In their prison cell, the away team constructs a device which they believe will reactivate Data's morality subroutines, hoping that he will question his unethical actions and Lore's intentions. Riker and Worf encounter Hugh, who tells them that Lore is the leader of this Borg group. He says that at one time Lore's help was necessary, but that he has destroyed many Borg through brutal experimentation. Hugh's group are "rebel" Borg, wanting to remove Lore from power. The away team manages to reactivate Data's ethical programming just as he is about to start the irreversible part of the experiment. La Forge pleads with Data, asking him to check his conscience. Data falters, claims that there are anomalies in the experiment and postpones it. Lore begins to doubt Data's devotion and attempts to strengthen control by threatening to remove the emotions he has provided. Data appears to be subservient, but Lore remains suspicious, and orders Data to prove his loyalty by killing Picard. Data refuses, as the rebooting of his morality subroutines is complete. Two Borg seize Data and Lore is about to execute him, when Riker and Worf arrive, accompanied by Hugh and some of the rebel Borg. A battle commences and Lore flees, pursued by Data. In their ensuing confrontation, Lore attempts to talk Data into escaping with him. When Data is unswayed, Lore attacks Data, but Data shoots him with a phaser and