Move Scheduler to TypeScript.