Update collectData.m