Refactored isolates and schedulers.