Updating purge script