Scheduler is now memory safe