Worked on getting the writer working properly