Semi working to writing a file now.