Thinking about how to improve the light pulse code.