isolate AddUpdateRaidplan_Collect_data to function