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

I would just use 0.