First draft of cleaning script