Revert "Revert "Implementing Calculation of LB""

This reverts commit 493148eb32f107291137c855d026c64682c3bbe8.