Use writer factory