Changed the dispatcher to be able to keep track of sub tasks.
Changed the dispatcher to be able to keep track of sub tasks.