Add remove preference script and clean standalone