Adding ldr condition