Modified method for dumping to successive files.