Adding writing csv