Changed append with w