Added dump results to a file and input from file