Changed iSample to iFrequency