LDF working implementation