Files are now writing and displaying correctly.