modification in addTask for AOD creation.