Updated File Writer