Reimplement using cpu_stop