Changed the LL calculator to deal with NaN entries better.