Added task delay tracking.