Implement LDR helper script