Append File + Refactoring