Redid processTrial.m