Fixed dumping tool (sequences need to be MAX+1).