LED testing, some slight modification