Added support for tasks with different classes of execution durations