Remove for loop before addSpikeEvent