Added spiketrain recording.