Updated the 'whichModes' size to match the effect count.