Modify last of scripts for untainting