General purpose cleanup.