Finalizes undo and mkmove, subject to testing