Warnings from valid() should be suppressed if ldr_in_pot is set.