Added writer factory