I changed a little bit the saving so that we wouldn't over write files.