Add scheduler. Not tested on HW.

Understatement of the year.