Cleaned up the writer.