Working on file updating and purging