Add a clean() function.