Changed run saving to work with json files.