Controlling the speed of light pulses