Purge amis script updated