spikeInCluster function written, untested