Updates file