Finished open file functionality.