Cleaning script of rubbish