Added writer method