Add support for an advanced task scheduler managed by the application.

At this point this will be 0 always right?  Maybe just a quick comment here making that clear.