Making the pulsesAtOnce code 16-bit safe.