Open and save functionality.