You could as well just write WMB format directly. It's documented in the manual.