Implemented open/save functionality.