Changes in make_pulse for compatibility