Updated in line with AddTask change.