Cleanup utilities.