Made clean script less "greedy".