Replace cleanup.