Made write to docx work