Add a third pass to merges so now pages aren't moved until there is no possibility of an error part way through.