Got the writer working somewhat