adding run until completion and saving the results to a local file