Calculating max number to be recieved using leds, also changed to take 10 leds