Updated to improvements from leds.py