Cleanup two functions.