Updated GrAF writer to new Writer API.