Added type to Task and ITask.