Data were collected using a 1550A digitizer (Molecular Devices), a 700B patch-clamp amplifier (Molecular Devices) and acquired with the pClamp 10.6 software (Molecular Devices). Recordings were filtered at 10 kHz. Synaptic recordings were analyzed using custom software developed by J.R.H. (Wdetecta). Action potentials were analyzed using custom MATLAB (MathWorks) programs. IPSCs and EPSCs were detected based on their direction and shape. We calculated the first time derivative of the current recording and set a detection threshold that was above the noise for each trace. Detected responses were then evaluated to confirm the detection accuracy.