First version of cleaning script