Added dumping to file