Added updateLEDs method.