Finished opening file functionality.