LDR now working