In trying to round up a defence, the Doctor heads to Ranger's cave, and finds the remains of the murdered crabs: it was Ranger who had been killing them. The Doctor manages to arrange for the beach dwellers and the woman to escape Meathook by sailing away on a raft that he and the crabs had been constructing, and the woman guides them towards the Memory. The Doctor is taken inside the Memory, where he finds a disembodied brain connected to it and Peri's scuba gear. His companion has been completely digested.