Improve clean script.