Meathook breaks into the Memory and kills the female, but Ranger sacrifices himself to destroy Meathook – who he knows is his damaged sister. The two remaining groups of crabs join forces, and the Doctor advises them to let the Memory heal and help them build a new society. He uses his link to the Memory to piece together Peri's memories and transplant them into a newly grown body. The crabs collect the TARDIS, and the two are able to continue on their journey together.