Improved/extended scheduler in preparation to support a "timing loop".