Added stub and basic logic for task statistics.