JAL-1479 improved Sifts PID calculation for determining an Entity to process