Removed n_changes and depth; replaced by 0-marking.