Updating and cleaning up files