Added an ability to save as file.