Finish saving file and saving file as...function.