Add ability to repeat pulses.